Privacy-enhanced Electronic Mail
lastmod 2018-01-31created 2014-04-166 edits
Privacy Enhanced Mail (PEM)
PEM File
Following is a sample PEM file containing a private key and a certificate, please note that real certificates are a couple of times larger, containing much more random text between the "BEGIN" and "END" headers. A *.pem file is a certificate encrypted with Base64. It goes between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----.
Rules
A few rules apply when copying a certificate around
-
----- BEGIN CERTIFICATE -----and----- END CERTIFICATE -----A single key or certiciate must start with the appropriate header. Always copy the certificate with the header and footer notes. - The number of dashes ("-----") is meaningful, and must be correct.