PEM encoded certificate

From Just Solve the File Format Problem
Revision as of 21:52, 17 October 2013 by Jsummers (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
File Format
Name PEM encoded certificate
Ontology
Extension(s) .pem, .crt, .cer

PEM encoded certificate is a file format for storing X.509 certificates. It is one of many PEM formats.

Contents

Format

A PEM encoded certificate is simply a base64-encoded DER encoded certificate file, with some delimiting lines added.

More than one certificate may be stored in a single file. There may also be other types of objects, such as private keys, stored in the same file.

Identification

A PEM encoded certificate file is plain text. It contains one or more pairs of "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----" lines, with base64-encoded data between them.

Examples

To display the contents of a PEM encoded certificate using OpenSSL:

 openssl x509 -noout -text -in example.crt

To convert from PEM encoded certificate format to DER encoded certificate format:

 openssl x509 -in example.crt -outform der -out example.der

Software

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox