.pem files
.pem file
PEM Certificate or Key
A base64 text container for certificates and cryptographic keys.
What opens a .pem file
- Windows
- Notepad (built in — to read the header), OpenSSL, Certificate Manager (import)
- macOS
- Keychain Access (built in), TextEdit (built in), OpenSSL
- Linux
- openssl x509 -text -in file.pem, Text Editor (built in)
What a .pem file is
PEM files are text, wrapping base64 data between BEGIN and END lines that say what is inside — CERTIFICATE, PRIVATE KEY, PUBLIC KEY. The same format is used for TLS certificates, SSH keys and AWS key pairs, which is why .pem, .crt, .cer and .key often hold identical content. Open one in a text editor to see what it is; treat any file containing a private key as a password and never send it anywhere.
Converting it
A .pem file is commonly converted to .der, .crt, .pfx or .p12. It is a plain text format, so any text editor can open and edit it directly.
Details
- Extension
- .pem
- Full name
- PEM Certificate or Key
- Category
- Data
- MIME type
- application/x-pem-file
- Created by
- IETF (RFC 7468)
- Format
- Plain text
Common questions
- How do I open a .pem file?
- On Windows use Notepad (built in — to read the header); on macOS use Keychain Access (built in); on Linux use openssl x509 -text -in file.pem. A base64 text container for certificates and cryptographic keys.
- What is a .pem file?
- PEM Certificate or Key. PEM files are text, wrapping base64 data between BEGIN and END lines that say what is inside — CERTIFICATE, PRIVATE KEY, PUBLIC KEY. The same format is used for TLS certificates, SSH keys and AWS key pairs, which is why .pem, .crt, .cer and .key often hold identical content.
- Can I convert a .pem file?
- Yes. It is usually converted to .der, .crt, .pfx or .p12, either by exporting from one of the programs listed above or with a format converter.
Related pages
- .csv — Comma-Separated Values A spreadsheet as plain text, one row per line — the universal data exchange form
- .json — JavaScript Object Notation The standard text format for structured data on the web and in config files.
- .xml — Extensible Markup Language A tag-based text format for structured data, still everywhere in enterprise syst
- .yaml — YAML Data File An indentation-based configuration format, readable but unforgiving about whites
- .log — Log File A plain-text record of what a program did, newest events usually at the bottom.
- .torrent — BitTorrent Metainfo File A few kilobytes of metadata describing what to download and from whom — not the
- .dat — Generic Data File A meaningless extension — .dat says only that some program stored data here.
- .vcf — vCard Contact File One or more contacts as plain text — the standard way to move an address book.
- .sql — SQL Script A text file of database commands — often a full database dump.
- .ics — iCalendar Event A calendar invitation or event feed in a plain-text standard format.
- .sqlite — SQLite Database A complete relational database in a single file — the most deployed database in
- .db — Generic Database File An extension many programs use for their data — it does not identify one format.
Sources
- Media Types Registry — IANA
- Official vendor product documentation — At One Place