Digital certificate
Also known as: public key certificate, X.509 certificate, SSL certificate
A signed digital document that ties a public key to a name, such as a website address, so others can trust whose key it is.
Draft - this entry has not been reviewed yet.
Formal
A data record, usually in the X.509 format, holding a public key, the identity it belongs to and a validity period, signed by a certificate authority whose own certificate can in turn be checked, forming a chain back to a root the device already trusts.
In plain English
Like a letter of introduction stamped by an authority both sides trust - the reader accepts the stranger because of the stamp, and only until the date written on it.
In practice
A municipality forgets to renew the certificate for its self-service portal; the next morning citizens' browsers show a full-page warning, and the citizen service desk is flooded with calls.
Why it matters
Encryption is useless if the private conversation is with the wrong party; certificates are what prove a website or server is the real one.
Technical deep dive
An X.509 v3 certificate (ITU-T X.509, first published 1988; profiled for the internet in RFC 5280) is an ASN.1 structure encoded in DER, usually transported base64-wrapped as PEM. Per RFC 5280 §4.1 it consists of tbsCertificate, signatureAlgorithm and signatureValue; the to-be-signed part holds version, serialNumber, signature, issuer, validity (notBefore/notAfter), subject, subjectPublicKeyInfo and extensions. The CA's signature covers the exact DER bytes of tbsCertificate, so any change, even re-encoding, invalidates it. Publicly trusted TLS certificates must have serial numbers with at least 64 bits of CSPRNG output, a defence against the kind of chosen-prefix hash collision that produced a rogue CA certificate from MD5 in 2008.
Extensions carry most of the semantics. subjectAltName (§4.2.1.6) lists the DNS names and IP addresses the certificate is valid for; browsers have ignored the subject Common Name for hostname matching since around 2017 (Chrome 58), so a certificate without SAN fails even if the CN is right. keyUsage and extendedKeyUsage restrict use (serverAuth, clientAuth, codeSigning), basicConstraints separates CA from end-entity certificates, and authorityInfoAccess and cRLDistributionPoints tell the relying party where to fetch the issuer certificate and revocation data. Wildcards match exactly one label: *.example.dk covers www.example.dk but not example.dk or a.b.example.dk.
Validation follows the path-validation algorithm in RFC 5280 §6: build a chain from the leaf through intermediates to a trust anchor, then check each signature, validity period, name and policy constraints, key usage and revocation status. Most real outages are chain-building or lifetime problems: a server that sends only the leaf and omits the intermediate works in browsers that cache or fetch intermediates but fails in curl, Java or IoT clients; an expired intermediate or root breaks clients that have not updated their trust stores. The certificate itself is public; what must be protected is the matching private key, typically delivered alongside in a PKCS#12 (.pfx) file or generated on the server from a CSR (PKCS#10) so it never leaves the machine.
Common misconceptions: a certificate does not encrypt anything, it authenticates the key used in the TLS handshake; DV, OV and EV differ only in how much identity vetting the CA did, not in cryptographic strength, and browsers no longer show EV prominently. Self-signed certificates provide encryption but no third-party authentication unless the key is pinned or distributed out of band. With TLS certificate lifetimes being cut stepwise from 398 days towards 47 days by 2029, inventory and automated renewal (ACME, RFC 8555) matter more than the choice of CA. Outside the web, the same format is used for client certificates in mutual TLS, S/MIME e-mail, code signing and eIDAS qualified certificates.
What to learn first
Everything this builds on, foundations first.
- Cryptographic key
- →Hashing
- →Digital identity
- →Public-key cryptography
- →Digital signature
- →Digital certificate
Relationships
- Implements
- AuthenticationNon-repudiation
Sources & further reading
Standards & official texts
- RFC 5280 - Internet X.509 Public Key Infrastructure Certificate and CRL Profile
Textbooks
- Paar & Pelzl, Understanding Cryptography
Where this data comes from
This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.
See the review queueSuggest a correction on GitHubThis term as JSON
Check yourself
Loading…