What is digital certificate;10 Facts You Must Know

The digital certificate is a virtual identity document used by individuals or legal entities. It works as an electronic CPF or CNPJ and allows the digital signature of documents.This certificate gives authenticity to transactions without the need for the person’s physical presence, which makes processes faster, less bureaucratic and more economical.The digital certificate can be used to sign contracts, issue electronic invoices, sign and send documents, bank transactions, etc. The digital signature has the same legal validity as a notarized signature.

The digital certificate guarantees:

  • Authenticity : recognition of documents and signatures as true;
  • Integrity : proof that the documents have not been altered after signature;
  • Non-repudiation : a person cannot deny that he has signed a document.

The information stored in a digital certificate is extremely secure, as it is protected by highly complex encryption .

The digital signature is not visible in a document like the signature we make by hand. To verify that it has been signed, it is necessary to use recognition software.

How to get a digital certificate?

To obtain a digital certificate, it is necessary to contact a certification authority recognized by the body called Brazilian Public Key Infrastructure – ICP Brasil.

The certifying authority will receive all the documents necessary for the creation of the digital certificate and will encrypt all the information in this kind of virtual identity.

The encryption that protects the data consists of two keys generated by mathematical functions: the public and the private. It is the recognition between these two keys that allows the identification of the digital certificate.

The digital certificate has an expiration date that varies according to the type of certificate. There are two types, the A1 and A3 certificates, understand the difference between them:

Types of digital certificate

  • A1 : certificate with simpler encryption, stored in a digital file and valid for one year.
  • A3 : certificate with more complex encryption, stored on a mobile device ( token or smartcard ) and valid for up to three years.

Benefits of digital certificate

  • Security : by using complex cryptography, the digital certificate system does not allow fraud to occur;
  • Reduction of bureaucracy : there is no need to go to the notary or public agency or print documents – all procedures are carried out virtually;
  • Agility : signing and sending documents online makes the process faster and allows transactions to be carried out remotely.

Digital Certificates in Cryptography

A digital certificate is an electronic document that binds a public key to an identity (a person, organization, server, or device). It is the cryptographic equivalent of a passport: a trusted third party vouches that a given public key genuinely belongs to the entity it claims to represent.

Without certificates, public-key cryptography has a fatal flaw: how do you know the public key you received actually belongs to the person you think it does? An attacker could substitute their own public key and intercept everything. Certificates solve this problem.


1. The Core Problem They Solve

Public-key cryptography lets you encrypt with someone’s public key or verify their signature. But if an attacker can trick you into using their public key while you believe it’s your bank’s, they can:

  • Decrypt messages you intended for the bank

  • Sign messages pretending to be the bank

This is a man-in-the-middle (MITM) attack. Certificates prevent it by having a trusted authority digitally sign the binding between identity and public key.


2. Structure of a Digital Certificate

The most common format is X.509, defined by ITU-T and used in TLS/HTTPS, email (S/MIME), and code signing.

A typical X.509 certificate contains:

Field Purpose
Version X.509 version (v1, v2, v3)
Serial Number Unique ID assigned by the issuer
Signature Algorithm Algorithm used to sign this certificate (e.g., SHA-256 with RSA)
Issuer Identity of the Certificate Authority (CA) that issued it
Validity Period “Not Before” and “Not After” dates
Subject Identity of the certificate owner (name, domain, organization)
Subject Public Key Info The public key + algorithm (e.g., RSA, ECDSA)
Extensions Optional: key usage, SANs, CRL distribution points, etc.
Signature The CA’s digital signature over all the above

The signature is the heart of the certificate. It proves the CA reviewed and vouched for the contents.


3. How a Certificate Is Created

The process follows the PKI (Public Key Infrastructure) model:

  1. Key generation — The subject generates a key pair (private + public).

  2. CSR (Certificate Signing Request) — The subject sends its public key and identity info to a CA.

  3. Verification — The CA verifies the subject’s identity (domain ownership, business registration, etc.).

  4. Signing — The CA creates the certificate and signs it with the CA’s private key.

  5. Issuance — The certificate is returned to the subject.

  6. Distribution — The subject presents the certificate to anyone who needs to verify its public key.

The CA’s private key is the root of trust. If it leaks, every certificate it issued becomes untrustworthy.


4. How Verification Works

When you connect to https://example.com, your browser receives the server’s certificate. It then:

  1. Checks the certificate’s signature using the CA’s public key.

  2. Verifies the CA is trusted (present in the browser/OS trust store).

  3. Checks the validity dates (not expired).

  4. Confirms the domain name matches (via Subject or SAN field).

  5. Optionally checks revocation status (CRL or OCSP).

If all checks pass, the browser trusts that the public key in the certificate genuinely belongs to example.com.


5. Types of Certificates

By validation level:

  • DV (Domain Validated) — Only proves domain control. Cheap, fast, common for blogs.

  • OV (Organization Validated) — Proves the organization exists. Used by businesses.

  • EV (Extended Validation) — Rigorous identity checks. Historically showed a green bar; now largely deprecated in browsers.

By usage:

  • TLS/SSL certificates — For HTTPS servers.

  • Client certificates — For authenticating users or devices to servers (mutual TLS).

  • Code signing certificates — For signing software.

  • Email certificates (S/MIME) — For signing and encrypting email.

  • Root and intermediate CA certificates — For building the trust chain.


6. The Chain of Trust

Certificates are rarely signed directly by a root CA. Instead:

text
Root CA (self-signed, in trust store)
   └── Intermediate CA (signed by Root)
          └── Leaf/End-entity Certificate (signed by Intermediate)

Your browser trusts the root, which vouches for the intermediate, which vouches for the leaf. This layered design keeps the root CA’s private key offline and safe.


7. Certificate Revocation

Certificates can be compromised or no longer needed. Two main mechanisms handle revocation:

  • CRL (Certificate Revocation List) — A signed list of revoked serial numbers, published periodically. Can be large and stale.

  • OCSP (Online Certificate Status Protocol) — Real-time query to the CA about a specific certificate. Faster but raises privacy concerns (the CA sees which sites you visit).

  • OCSP Stapling — The server fetches its own OCSP response and includes it in the TLS handshake, avoiding the privacy leak.


8. Common Algorithms and Standards

Component Common Choices
Public key algorithms RSA (2048/4096-bit), ECDSA (P-256, P-384), Ed25519
Signature algorithms SHA-256/384/512 with RSA, ECDSA with SHA-256
Certificate format X.509 v3 (dominant), PGP (alternative model)
Encoding DER (binary), PEM (Base64 text)
File extensions .crt, .cer, .pem, .der, .p12, .pfx

9. The PGP Alternative

PGP (Pretty Good Privacy) uses a web of trust instead of a hierarchical CA model. Users sign each other’s keys directly. There’s no central authority. This is more decentralized but harder to scale and easier to misuse — most users don’t verify fingerprints carefully.


10. Weaknesses and Real-World Issues

  • CA compromise — If a CA is hacked (e.g., DigiNotar in 2011), attackers can issue valid certificates for any domain.

  • Mis-issuance — CAs occasionally issue certificates to the wrong party due to validation failures.

  • Trust store bloat — Browsers trust hundreds of CAs; a single bad one weakens everyone.

  • Expiry management — Expired certificates cause outages (e.g., Microsoft Teams in 2020).

  • Quantum threat — Shor’s algorithm will break RSA and ECDSA. Post-quantum certificate schemes are under development (e.g., ML-DSA, SLH-DSA).

Leave a Comment

Scroll to Top