PEM decoder
Paste any PEM block to learn what it is: a certificate, a CSR, a public key or a private key in PKCS#8, PKCS#1, SEC1 or OpenSSH form, encrypted or not.
Any block that starts with -----BEGIN. It is read in your browser and is not sent anywhere.
Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the PEM decoder
- Paste one or more PEM blocks.
- Read what each block is and its algorithm and size.
- For a private key, check whether it is encrypted, and act on the warning.
About this tool
PEM is a wrapper, not a format of its own: Base64 data between a -----BEGIN line and a matching -----END line. The words on those lines say what is inside. CERTIFICATE is an X.509 certificate, CERTIFICATE REQUEST is a CSR, PUBLIC KEY is a public key, and several labels mean a private key: PRIVATE KEY (PKCS#8), RSA PRIVATE KEY (PKCS#1), EC PRIVATE KEY (SEC1) and OPENSSH PRIVATE KEY.
This tool reads the label and then the data behind it, and tells you what you are holding: the type, the key algorithm and size where they can be read, and for a private key whether a passphrase protects it. That answers the everyday questions, such as which of three files in a folder is the key, whether a key is RSA or elliptic curve, and whether a file someone sent holds something it should not.
The important line to know is PRIVATE KEY. A private key that is not encrypted is a credential in plain text: whoever has the file can impersonate the server or sign in as the user. If you paste one here it stays in your browser, and the tool says so plainly. A key that has been pasted into a chat, a ticket or a repository should be replaced.
Sources
Questions
A text file that holds binary cryptographic data as Base64 between BEGIN and END lines. The same wrapper carries certificates, keys and requests, and the label on the BEGIN line says which. Files named .pem, .crt, .cer and .key are often all PEM.
BEGIN PRIVATE KEY is PKCS#8, a container that names the algorithm and can hold RSA, elliptic curve or Ed25519 keys. BEGIN RSA PRIVATE KEY is the older PKCS#1 form that holds only an RSA key. OpenSSL converts between them with openssl pkey.
A PKCS#8 key says BEGIN ENCRYPTED PRIVATE KEY. An older key keeps its label and adds the header lines Proc-Type: 4,ENCRYPTED and DEK-Info. An OpenSSH key always says BEGIN OPENSSH PRIVATE KEY and records the cipher inside, which this tool reads.
Treat it as stolen. Generate a new key, replace the certificate or the authorized key that used the old one, and revoke the old certificate. Deleting the message or the commit does not undo the exposure.