Vaultools
Menu

X.509 certificate

An X.509 certificate is a digitally signed document that binds a public key to an identity, such as a website's domain name. It is the foundation of HTTPS and most other public-key infrastructure, and the Internet profile is defined in RFC 5280.

What is inside

Every X.509 certificate contains:

Certificates are usually stored as PEM text or binary DER.

Chains of trust

A certificate alone proves nothing. Trust comes from the chain: a server’s leaf certificate is signed by an intermediate CA, whose certificate is signed by a root CA. Roots are self-signed, and your operating system or browser ships a list of roots it trusts. To validate a connection, the client walks up from the leaf and checks each signature and validity period until it reaches a root it already trusts.

How long they last

Publicly trusted TLS certificates have a maximum lifetime set by the CA/Browser Forum, and it keeps shrinking. It was 398 days for years, and the Forum has approved a schedule that reduces it further over the coming years. Check the current Baseline Requirements before planning around a number. Shorter lifetimes are why automated renewal is now the norm.

Reading one

openssl x509 -in cert.pem -noout -text

Or paste it into the decoder linked below, which shows the same fields without sending the certificate anywhere.

Common pitfalls

References

Ads on this page

Non-personalized ads help keep Vaultools free — Google decides where they appear on the page.

Go Pro to remove them →