Jay Taylor's notes
back to listing indexsecurity - What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats? - Server Fault
[web search]
I'm pretty much a n00b at system administration and I am responsible for maintaining two Debian servers. Every time I have to do anything with security certificates, I google for tutorials and beat away until it finally works. However, in my searchings I often come across different file formats (.key, .csr, .key, .pem) but I've never been able to find a good explanation of what each file format's purpose is, etc. I was wondering if the good folks here at serverfault could provide some clarification on this matter?
| ||||
add comment | ||||
SSL has been around for long enough you'd think that there would be standards for how these things would work. And you're right, there are. Too many standards as it happens. So this is what I know, and I'm sure others will chime in.
I hope this helps. Edit: A couple other file-types:
| |||||||||||||||||||||||||||
|
PEM on it's own isn't a certificate, it's just a way of encoding data. X.509 certificates are one type of data that is commonly encoded using PEM. PEM is a X.509 certificate (whose structure is defined using ASN.1), encoded using the ASN.1 DER (distinguished encoding rules), then run through Base64 encoding and stuck between plain-text anchor lines (BEGIN CERTIFICATE and END CERTIFICATE). You can represent the same data using the PKCS#7 or PKCS#12 representations, and the openssl command line utility can be used to do this. The obvious benefits of PEM is that it's safe to paste into the body of an email message because it has anchor lines and is 7-bit clean. RFC1422 has more details about the PEM standard as it related to keys and certificates. | |||
add comment |
Sometimes a | |||
add comment |
protected by Zoredache Mar 15 at 16:57
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.