Certificate & CSR decoder
Paste a certificate, a whole chain, a CSR or a public key (PEM, the -----BEGIN ...----- kind), or open the file. It is decoded right here in your browser. This page is not even allowed to make network requests, so nothing you paste can leave it.
-----BEGIN CERTIFICATE----- MIICCDCCAa6gAwIBAgIJAIssr+h/aiLXMAoGCCqGSM49BAMCMFAxCzAJBgNVBAYT AklEMRAwDgYDVQQHEwdKYWthcnRhMRQwEgYDVQQKEwtFeGFtcGxlIE9yZzEZMBcG A1UEAxMQd3d3LmV4YW1wbGUudGVzdDAeFw0yNjExMjgwMTIzNTJaFw0yNzEyMzEw MTIzNTJaMFAxCzAJBgNVBAYTAklEMRAwDgYDVQQHEwdKYWthcnRhMRQwEgYDVQQK EwtFeGFtcGxlIE9yZzEZMBcGA1UEAxMQd3d3LmV4YW1wbGUudGVzdDBZMBMGByqG SM49AgEGCCqGSM49AwEHA0IABBUodmj5D4qXYgNnQlK5xb5KXxmAoIc3vi9+bdba uKDUtcyaaN37yjKTdFjdH3cyK0MLZAxk9/IB7pnWqFESKtajcTBvMCkGA1UdEQQi MCCCEHd3dy5leGFtcGxlLnRlc3SCDGV4YW1wbGUudGVzdDAOBgNVHQ8BAf8EBAMC B4AwEwYDVR0lBAwwCgYIKwYBBQUHAwEwHQYDVR0OBBYEFJiKUtUVr9wBrFg0v4TA 8m+z86UKMAoGCCqGSM49BAMCA0gAMEUCIQCthYBQrXxpUVrXf2mQx28zAY1idXd7 tBA/AhyRhqVRxwIgHbXkCAUj5z85A0wgIzSeiqz3B3NpMsrcwXm93sI+GcQ= -----END CERTIFICATE-----
-----BEGIN CERTIFICATE REQUEST----- MIIBbDCCARMCAQAwUDELMAkGA1UEBhMCSUQxEDAOBgNVBAcTB0pha2FydGExFDAS BgNVBAoTC0V4YW1wbGUgT3JnMRkwFwYDVQQDExB3d3cuZXhhbXBsZS50ZXN0MFkw EwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEFSh2aPkPipdiA2dCUrnFvkpfGYCghze+ L35t1tq4oNS1zJpo3fvKMpN0WN0fdzIrQwtkDGT38gHumdaoURIq1qBhMF8GCSqG SIb3DQEJDjFSMFAwKQYDVR0RBCIwIIIQd3d3LmV4YW1wbGUudGVzdIIMZXhhbXBs ZS50ZXN0MA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDATAKBggq hkjOPQQDAgNHADBEAiAboWC5RHP3eg0ZcFGeToOnnbqcjffFZOAmjca+T+T8XAIg TX13pyueye3NsScGCgUP4tU/7dDBzxSQXk2EgldA2Yw= -----END CERTIFICATE REQUEST-----
Does this certificate fit my private key?
The certificate key matcher on this page is a recipe, not a text box. You run it on your own server; the key stays exactly where it is.
Rule #1: a private key never goes into a website.
Not this one, not the shiny one with the friendly padlock, not the one your colleague swears by. A private key is like a toothbrush: personal, never shared, and nobody needs to see yours. Any page with a box for it is a page that could keep it, and you would never know.
Already pasted one somewhere? Treat that key as burned: make a new key and CSR, get the certificate reissued, and ask the CA to revoke the old one. Annoying, but much cheaper than the alternative.
1 · The quick check (works for RSA, ECDSA and Ed25519)
Print the public key that hides inside each file and compare. Same output means it is the same key pair.
diff <(openssl pkey -in server.key -pubout) \
<(openssl x509 -in server.crt -noout -pubkey) \
&& echo "match: this certificate belongs to this key" \
|| echo "no match"
2 · Compare by fingerprint (handy when the files live on different machines)
Each line prints a SHA-256 of the public key. The decoder above shows the same value as Public key SHA-256 for any certificate or CSR you paste, so you can compare with what step 2a prints for your key.
openssl pkey -in server.key -pubout -outform DER | openssl sha256
openssl x509 -in server.crt -noout -pubkey | openssl pkey -pubin -outform DER | openssl sha256
openssl req -in server.csr -noout -pubkey | openssl pkey -pubin -outform DER | openssl sha256
3 · The old-school way (RSA keys only)
openssl x509 -noout -modulus -in server.crt | openssl sha256
openssl rsa -noout -modulus -in server.key | openssl sha256
Key protected with a passphrase? openssl asks for it on your terminal, which is exactly where a passphrase belongs. Want to check a certificate and CSR against each other? Paste both into the decoder above: they are public, and it tells you whether their keys match.
More tools
- chmod calculatorFile permissions, in octal, symbolic and plain English.
$ chmod 755 script.sh - cron expressionCrontab schedules in plain English, with the next run times.
$ */15 2-6 * * 1-5 - systemd timerA cron job as a systemd service and timer, ready to copy.
$ systemctl enable --now backup.timer - SSH config~/.ssh/config blocks and a hardened sshd_config.
$ ssh web1 - Password generatorStrong random passwords, made and kept in your browser.
$ openssl rand -base64 24