Erlang -- Introduction

public_key

User's Guide

Version 1.8

- User's Guide
- Reference Manual
- Release Notes
- PDF
- Top

- Expand All
- Contract All

### Chapters

- Introduction
  - Top of chapter
  - Purpose
  - Prerequisites
  - Performance Tips
- Public-Key Records
  - Top of chapter
  - Data Types
  - RSA
  - DSA
  - ECDSA
  - PKIX Certificates
  - Standard Certificate Extensions
  - Private Internet Extensions
  - CRL and CRL Extensions Profile
- Getting Started
  - Top of chapter
  - PEM Files
  - RSA Public-Key Cryptography
  - Digital Signatures
  - Verifying a certificate hostname
  - SSH Files

# 1 Introduction

### 1.1 Purpose

The Public Key application deals with public-key related file formats, digital signatures, and X-509 certificates. It is a library application that provides encode/decode, sign/verify, encrypt/decrypt, and similar functionality. It does not read or write files, it expects or returns file contents or partial file contents as binaries.

### 1.2 Prerequisites

It is assumed that the reader is familiar with the Erlang programming language and has a basic understanding of the concepts of using public-keys and digital certificates.

### 1.3 Performance Tips

The Public Key decode- and encode-functions try to use the NIFs in the ASN.1 compilers runtime modules, if they can be found. Thus, to have the ASN1 application in the path of your system gives the best performance.