SSL Certificate Decoder
Paste a certificate, chain or CSR to see its names, expiry, chain order and private key match. Runs in your browser.
Certificates, CSRs and keys are decoded in your browser; nothing is sent to our server.
What does an SSL certificate decoder do?
A certificate file (.crt, .pem, .cer) is not readable text; it is an ASN.1 structure encoded in base64. This tool opens that structure in your browser and shows who the certificate was issued to, which names it covers, when it expires and which authority signed it. Use it to confirm you received the right file before installing it, to check the order of a chain file, or to find out which certificate a private key belongs to. It understands several PEM blocks (a full chain), CSRs, PKCS#7 (.p7b) files and binary DER files.
What the fields mean
Subject: the owner of the certificate. Domain validated (DV) certificates only carry a Common Name (CN); OV and EV certificates also show the organisation, city and country. Issuer: the CA or intermediate that signed the certificate. Names covered (SAN): the domains and IP addresses the certificate is valid for; browsers read names from this list, not the CN. Validity: start and end time, in UTC. Key: the type and size of the public key, for example RSA 2048 bit or ECDSA P-256. Signature algorithm: the method the issuer used to sign this certificate; SHA-1 and MD5 are no longer accepted.
Basic constraints: whether the certificate may sign other certificates (CA). A server certificate should say "not a CA". Key usage and extended key usage: what the key may be used for; a website needs "TLS Web Server Authentication". Fingerprint: the SHA-256 and SHA-1 hash of the whole certificate; use it to tell whether two files hold the same certificate. OCSP, CA Issuers and CRL: where browsers check revocation and where the intermediate certificate can be downloaded. Serial number: the unique number the CA gave the certificate; revocation lists refer to it.
Common errors
Expired certificate: once the end date has passed, browsers show a "your connection is not private" warning. After installing the new certificate, reload the web server; the old one can stay in memory. Missing intermediate: if the server only sends its own certificate, desktop browsers often fill the gap, but Android, curl and payment gateways fail. Install the certificate together with the intermediate (the full chain); the tool shows the CA Issuers address the intermediate can be downloaded from. To see what a live site actually sends, use our SSL checker.
Name mismatch: if the domain you open is not in the SAN list, browsers show NET::ERR_CERT_COMMON_NAME_INVALID. A wildcard *.example.com covers one level of subdomains only; the bare example.com and a.b.example.com must be listed separately. Type a domain into the name box of the tool to check it right away. Wrong order: a chain file starts with the server certificate, followed by the intermediate that signed it; the root does not need to be sent. Key does not match: nginx reports key values mismatch; the certificate was issued for another CSR, and so for another key. Find the right key or reissue the certificate with a new CSR.
Check a CSR before you send it
Paste the CSR here before handing it to the CA: make sure the names, organisation details and key size are right and the signature is valid. If you need a new CSR and private key, create them in your browser with our CSR generator.
The same checks with OpenSSL
If you prefer the command line on your server, OpenSSL gives the same details:
openssl x509 -in certificate.crt -noout -text
openssl req -in request.csr -noout -text -verify
openssl x509 -in certificate.crt -noout -fingerprint -sha256
openssl verify -untrusted intermediate.crt certificate.crt
To confirm that a private key belongs to a certificate or CSR, compare the public keys:
# If both outputs are the same, the key belongs to the certificate (RSA, ECDSA, Ed25519)
openssl x509 -in certificate.crt -noout -pubkey | openssl sha256
openssl pkey -in private.key -pubout | openssl sha256
openssl req -in request.csr -noout -pubkey | openssl sha256
# The classic modulus comparison, RSA only
openssl x509 -in certificate.crt -noout -modulus | openssl md5
openssl rsa -in private.key -noout -modulus | openssl md5
Your data stays in your browser
Decoding happens on your computer; the certificate, CSR or key you paste is not sent to our server, not stored and never put in the address bar. Still, the general rule stands: do not paste private keys into websites. The private key is only needed for the match check, which you can also run on your own server with the OpenSSL commands above. A full-access VDS is all you need to host the site the certificate is for.
More free tools
FAQ
About SSL Certificate Decoder
The tool never sends the key anywhere; decoding and comparing happen in your browser, and once the page has loaded it works offline. Still, make it a habit not to paste private keys into websites. Reading a certificate or CSR needs no key; it is only needed for the match check, which you can also run on your server with openssl pkey -in private.key -pubout | openssl sha256.
A PFX (PKCS#12) file is password protected and carries the private key along with the certificate, so the tool does not open it directly. Extract the certificates as PEM and paste them here: openssl pkcs12 -in file.pfx -nokeys -out certificate.pem. The command asks for the PFX password. Every certificate of the chain ends up in one file; the tool puts them in order.
Paste the certificate here; the end date and the days left appear in the first rows. On the command line, openssl x509 -in certificate.crt -noout -enddate gives the same date. To see the certificate actually installed on a site, type the domain into our SSL checker instead.