Skip to content
AI Web Toolbox

Security

SSL Certificate Decoder: Read a PEM Certificate

Use SSL Certificate Decoder when you need a quick way to work through this task. Decode a PEM certificate's details. This guide walks through a small example and the checks to make before you use the result.

An SSL certificate decoder turns the unreadable PEM block between the BEGIN and END CERTIFICATE lines into fields you can verify. Use it to confirm which certificate you received before installing it, or to read the expiry date of one you manage.

How to use the tool

  1. Open the certificate file and copy the whole block, including both marker lines.
  2. Paste it into “Your input” and press “Decode”.
  3. Compare the subject, the “Valid until” date and the fingerprint with your records.
Open SSL Certificate Decoder

Try a small example

Example input or settings

openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 90 -subj "/O=Example Bakery/CN=shop.example.com"

What to check

Dates are shown in UTC and the SHA-256 fingerprint as 64 hexadecimal characters without colons. Alternative names, key size, signature algorithm, chain trust and revocation are not shown, and only the first certificate in a bundle is read. DER files return an error. Text is sent to this server: never paste a private key.

What can you read from a PEM certificate?

Create a harmless test file with: openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 90 -subj "/O=Example Bakery/CN=shop.example.com". Decoding cert.pem shows O=Example Bakery, CN=shop.example.com as both subject and issuer, because it is self-signed, with dates 90 days apart.

When this is useful

For a real task, replace the sample with your own input and check the output in its final context. Keep a copy of the original if the change is hard to reverse.

Before you rely on the result

Use disposable examples when testing. Keep real secrets private, verify the result independently and review security settings for your application.

Browse all guides