Key and certificate file formats
Files that hold cryptographic material: private and public keys, and the certificates that bind a public key to a name and are signed by someone who vouches for it. Web servers, email, code signing and SSH all depend on them.
Formats
.ASC
OpenPGP keyPGP and GnuPG keys: OpenPGP packets, as binary or base64 armour.
.DER
DER-encoded certificate or keyCertificates and keys in binary ASN.1: tag, length and value fields.
.JKS
Java KeyStoreJava’s older keystore: named keys and certificates, closed by a SHA-1 hash.
.PEM
Privacy-Enhanced Mail encodingKeys and certificates as base64 text between BEGIN and END lines.
.PFX
PKCS #12 key and certificate bundleA private key and its certificates in one password-protected file.
.PUB
OpenSSH public keyAn SSH public key on one line: type, base64 key and a comment.