Decode an SSL certificate and check its chain CERTLENS
Takes a certificate or chain apart, checks each signature against the certificate above it, and says what is wrong in words. Nothing is sent anywhere.
The certificate
Drop a .pem, .crt, .cer, .der or .p7b here, or
What it says
Each certificate
The structure underneath
The same file as a tree, for when a field is not where it should be.
How it works
A certificate is a signed statement, not a status light
Strip away the ceremony and a certificate says four things: this public key belongs to these names, it may be used for these purposes, it is good until this date, and here is somebody vouching for all of that. Every part of it is public by design. Almost none of it is ever read, because the browser shows a padlock and the padlock answers a narrower question than anyone assumes.
That is how the ordinary failures happen. A chain goes out with the wrong intermediate in the middle and works in one client and not another. A wildcard is issued that nobody meant to issue. A key is shorter than the ceremony around it implies. A leaf quietly carries the basic constraint that lets it sign other certificates. None of these look wrong in a listing; they look like a certificate.
The signatures are verified, not assumed
This takes a certificate apart down to the bytes (a DER reader, an X.509 reader on top of it) and then checks each certificate's signature against the one above it in the chain, using the browser's own cryptography. That is the part most readers skip, and it is the part that matters.
A chain that does not join up is invisible to inspection. Every certificate in it is individually valid, in date, and correctly formatted. The listing looks exactly right. It fails only in somebody else's client, usually the one client you cannot reproduce (an older Android, a Java service, a payment terminal) because those are the ones that do not quietly fetch a missing intermediate for you. Verifying the signatures is the only way to find that from the file rather than from a support ticket.
Each check says one thing, in words, rather than producing a field dump and leaving the reading to you. The file can be PEM or DER, a single certificate or a whole chain, pasted or dropped.
Why this one does not upload
There is nothing secret in a certificate. It is handed to every client that connects; that is its entire function. So the honest answer to “why not just use an online checker” is not that a certificate is confidential.
It is that certificates live in directories next to private keys, with similar names and similar extensions, and the file you meant to drag is one row away from the file you did not. A page that uploads what it is handed is a page you have to be careful around every single time, and being careful every single time is not something people do. A page with nowhere to send anything is one you can be careless with, which is the only kind of safety that survives contact with a bad afternoon.
Alongside: JOT reads a token and checks its signature the same way, HEADERPROOF reads the authentication results on an email, and CHECKSUM answers the related question of whether a file is the file its publisher built.
The guide: How to read a pcap file without Wireshark
Questions people ask about CERTLENS
What can I put in?
A certificate as PEM text, a whole chain of them pasted one after another, a binary DER file, or a .p7b bundle as Windows exports a chain. Certificate signing requests and bare public keys are read too. A private key is recognised and refused rather than parsed.
Does it check the certificate is trusted?
It checks the chain you give it: each certificate against the one above, the dates, the names, the key and the extensions. It cannot tell you whether the top of that chain is in your operating system’s trust store, because a page in a browser is not allowed to read that list. It will tell you when the chain does not reach a self-signed root, which is the usual reason a certificate works on one machine and not another.
Why does it say my certificate is missing a name?
Because the hostname is only in the common name field. Browsers stopped reading that in 2017 and now require a subject alternative name entry. A certificate like that will be rejected as having the wrong name for the site, which is a confusing error given the name is plainly there.
What counts as a key too short?
RSA under 2048 bits, which is below what public certificate authorities have been allowed to issue since 2014 and is refused outright by current browsers. Elliptic curve keys are flagged below 256 bits. A short key is not weak in a way you would notice day to day; it is weak in a way that fails suddenly when something updates.
It says the chain is out of order. Does that matter?
Often yes. A server is supposed to send the leaf first and each issuer after it. Some clients repair the order and some do not, so a chain that works in a browser can fail in a payment library or an old phone. The order is worth fixing even when nothing has complained.
What is the tree view for?
It shows the same file as a tree, for when a field is not where it should be. Tags, lengths and decoded values, straight out of the parser. Copy what was read puts the decoded text on the clipboard.
Why read a certificate that already says valid?
A certificate is a signed statement about who holds a key, what they may use it for, and until when. Everything in it is public by design and most of it is never looked at, which is how a chain goes out with the wrong intermediate, a wildcard nobody meant to issue, or a key too short to be worth the ceremony. CERTLENS takes one apart, checks each signature against the certificate above it, and says what is wrong in words.
How do I open a .p7b file?
Drop it on CERTLENS. A .p7b (or .p7c) is a PKCS #7 bundle that only carries certificates, usually a whole chain exported from Windows. Every certificate in it is read, put in order from the leaf up, and checked against the one above it. OpenSSL’s equivalent is openssl pkcs7 -print_certs -in file.p7b.
Doing this often? The OBSCURA Sovereign Suite keeps a certificate inventory: every certificate with its expiry and key, soonest to expire first. On its own, US$2 a month; with everything else, US$5 a month or US$48 a year.