SSL Clock

Free SSL tools

Decode a pasted PEM certificate

Paste a PEM certificate and read the subject, issuer, names, dates, key, signature algorithm, and fingerprints. The paste is not stored.

Paste the certificate block only. A private key is refused and is not shown.

Start monitoring free

What a PEM certificate is

A PEM certificate is the public certificate file written as base64 between a BEGIN CERTIFICATE line and an END CERTIFICATE line. Mail clients, web servers, and load balancers all move certificates around in that shape. The decoder reads that block with the platform certificate parser and prints the fields operators actually compare after a renewal.

Paste one certificate. If the file also contains a private key, the decoder refuses the paste and does not print the key. A certificate is public. A private key is not, and it does not belong in a browser form. Split the file, keep the key on the server, and paste only the certificate.

The result is a reading of the file you pasted. It is not a connection to a website, and it does not prove that any server is presenting this file. After you know the file is the one you meant to install, check the hostname with the live checker or the chain checker.

Subject and issuer

The subject names the certificate. You will usually see a common name, and sometimes an organization or a country. The common name is a label from the request that created the certificate. It is not, by itself, the list of hostnames clients will accept.

The issuer names the certificate that signed this one. On a public site that is almost always an intermediate, not the brand name on the invoice. Let's Encrypt intermediates use short names such as R10 or R11. Google Trust Services, DigiCert, Sectigo, and Amazon Trust Services show up the same way. If the issuer is the same as the subject, the certificate is self signed. Browsers will not trust it unless the user installed that exact certificate.

A surprise issuer usually means a host, a CDN, or a load balancer renewed the certificate for you. That can be correct. It can also mean the edge is still serving a default certificate from the platform. Compare the issuer with the account that should own the name before you call the change done.

Subject alternative names

The subject alternative names are the hostnames and addresses the certificate is allowed to represent. A DNS name is the usual entry. A wildcard such as *.example.com covers one label, so shop.example.com matches and eu.shop.example.com does not. The bare domain example.com is not covered by that wildcard either. It needs its own DNS entry.

If the name you serve is missing, browsers show a name mismatch even when the dates are still in the future. Fix it by issuing a replacement that lists every public name the server will present, including the bare domain and www when both answer. Then install that file and reload the service that terminates TLS.

Extra names are normal on shared hosting and on CDNs. They are a problem only when your name is absent, or when a name you retired is still listed and you did not expect it. The decoder shows the list that is inside the file. It does not contact DNS.

Validity

Not before and not after are the two dates in the certificate, shown in UTC. The days remaining count is whole days from the moment you decode the file. A negative number means the not after date is already in the past. A time near midnight UTC can be a different calendar day in your local zone, so convert before you book a change window.

Public certificates are getting shorter. A file that looks comfortably long today can be inside a 90 day Let's Encrypt lifetime or, later, inside the shorter public caps. Decoding tells you the date in this file. It does not renew the file, and it does not notice if a server keeps serving the old one after you replace it on disk.

If the dates are wrong, you cannot edit them. The certificate authority has to sign a new certificate. Install that new file on every listener that should present it, including the load balancer or ingress if that is where TLS ends.

Key type, key size, and signature algorithm

The key type is the public key inside the certificate. RSA and ECDSA are the ones you will see on public sites. The size is the RSA modulus length in bits, or the elliptic curve name. RSA 2048 is the common floor. RSA 1024 is obsolete and should be replaced. ECDSA on prime256v1, also called P-256, is a normal modern choice. Ed25519 appears in some internal tools and is not what most public web CAs issue.

The signature algorithm is how the issuer signed this certificate. sha256WithRSAEncryption and ecdsa-with-SHA256 are the usual current values. sha1WithRSAEncryption is a warning. Clients have been dropping SHA-1 for years. You cannot upgrade the algorithm in place. Issue a new certificate from a profile that signs with SHA-256 or stronger, and install that file.

The key in the certificate is the public key. It must match the private key on the server or the handshake fails after you install the file. The decoder cannot check that match, because it never asks for the private key. If a reload fails with a key mismatch, the certificate and the key came from different requests. Generate them together, or install the certificate that the CA returned for that exact request.

Fingerprints

A fingerprint is a hash of the certificate bytes. SHA-1 and SHA-256 are both shown so you can match older notes and current ones. Two files with the same SHA-256 fingerprint are the same certificate. A renewal always changes the fingerprint, even when the names stay the same, because the dates and the signature change.

Use the fingerprint when someone says the new file is installed and the site still looks old. Decode the file from disk, then compare the SHA-256 value with the certificate the chain checker reads from the live hostname. If they differ, the process you reloaded is not the process that is answering, or a proxy in front is still holding the previous file.

Common errors and the fix

The paste is not a certificate. The usual cause is a certificate signing request, a private key, or a file that lost its header lines in email. Open the file and confirm the first line says BEGIN CERTIFICATE. If it says BEGIN CERTIFICATE REQUEST, use the CSR decoder instead.

The PEM is truncated. A wrapped email or a ticket system sometimes cuts the last lines. The base64 then fails to parse. Paste the block again from the original file, including both header lines.

The certificate is expired or not yet valid. Replace it. If not before is in the future, the clock on the machine that created it may have been wrong, or you decoded a file that was issued for a later cutover. Wait until not before, or issue a certificate that is valid now.

The names do not include the host you serve. Reissue with every public name, install the new file, and reload. A wildcard does not cover the bare domain and does not cover a deeper label.

The signature algorithm is SHA-1, or the RSA key is smaller than 2048 bits. Treat that file as something to retire. A public CA should not be issuing it anymore. If this is an old internal certificate, plan a replacement rather than extending the same key.

You decoded the right file and the website is still wrong. The file on disk and the file in the handshake are different. Run the chain checker against the public hostname. Private and internal names are out of scope for that check. The decoder itself never opens a connection, so it cannot see a private network either.

From a one time read to a reminder

A decode answers what this file says today. It will not tell you when the copy on the server is about to expire next month. Add the public hostname if you want the check repeated. Free monitoring covers 3 hostnames, with reminders at 30, 14, 7, 3, and 1 day, and the same Slack, Teams, webhook, and PagerDuty channels as the paid plans. The paste you used here is not imported. You add the hostname, not the PEM.

The CSR decoder reads a request before issuance. The certificate chain checker reads the live handshake. The set of tools is on free SSL tools.

FAQ

Does the decoder save the certificate I paste?

No. The paste is read in the request that decodes it and is not written to a monitor, a log, or a file. Close the tab and the text is gone.

Can I paste a private key with the certificate?

No. If the text contains a private key block, the decoder stops and does not print the key. Paste only the certificate block.

What is the difference between the two fingerprints?

SHA-1 and SHA-256 are two hashes of the same certificate bytes. Use SHA-256 when you compare a file on disk with the certificate a server sends.

Why does the subject list a name the browser does not use?

The subject common name is a label. Browsers match the hostname against the subject alternative names. If your name is only in the subject, some clients still reject it.