skip to content

OpenPGP Comparison

Two ways to secure a message body: CA-issued certificates with native client support, or OpenPGP's web of trust and user-published keys. Interviewers use it as the trust-model design question.

on this pageshow

explore

questions

5

In mail encryption, how does S/MIME's CA-issued identity differ from OpenPGP's web of trust when deciding a correspondent's key is genuine?

level: juniorimportance: must knowfreq 48%

answer

  1. who vouches for the key
  2. authority versus each receiver
  3. trust anchor versus certifications
  4. receiver holds final authority for validity

basics

~20 s

S/MIME trusts a key because a certification authority the client already trusts issued a certificate binding it to the mailbox. OpenPGP users create their own keys, and each receiver decides validity from certifications by people it trusts or its own checks.

solid answer

~40 s

In S/MIME a certification authority checks the mailbox and issues an X.509 certificate; the receiving client accepts the key when a certification path leads to a trust anchor it already holds, so trust is hierarchical and set by whoever manages those anchors. In OpenPGP each user generates a key and collects **certification signatures** on its User ID from other keyholders. RFC 9580 places final authority for validity with the receiver, who accepts a key that keys they trust as introducers have certified (the web of trust) or whose fingerprint they checked themselves; many users simply accept the first key seen. S/MIME is easy where everyone shares trusted issuers; OpenPGP works without any authority but pushes the trust decision onto each user. The two formats do not interoperate.

go deeper

for a junior

Recall the one-line contrast: S/MIME trusts a key because a recognised authority issued its certificate; OpenPGP trusts a key because people you trust certified it or you checked it yourself.

for a middle

Explain what each client actually checks: a certification path to a trust anchor for S/MIME, certification signatures plus the receiver's own trust settings for OpenPGP, and where trust on first use fits.

for a senior

Show you know the operational consequences: who manages trust anchors, why the web of trust rarely scales beyond engaged users, and why the two standards cannot read each other's keys or messages.

for a principal

Frame the trust model as a governance choice: centrally managed issuers suit an organisation that controls its clients, user-held trust suits a community without a common authority, and running both doubles keys, publication and support.

## Two answers to one question Before a mail client encrypts to `[email protected]`, or shows a signature from her as genuine, it has to believe that one particular public key belongs to Alice. Both message-security standards for Internet mail answer that question, but they put the decision in different hands: - **S/MIME** (version 4.0 is RFC 8551 with RFC 8550, 2019) delegates it to a **certification authority (CA)**. - **OpenPGP** (RFC 9580, July 2024, which obsoleted RFC 4880) leaves it with each **receiver**, who weighs statements made by other keyholders. ## S/MIME: identity issued by an authority In S/MIME the public key travels inside an X.509 certificate. - A CA checks that the applicant controls the mailbox (and, for some certificate types, who the person or organisation is) and signs a certificate that names the address. - The receiving client accepts the certificate when it can build a certification path from it up to a **trust anchor** it already holds. How that path is built and checked belongs to the material on certificate path validation. - Trust anchors are managed centrally, by the platform or by an organisation's administrators, so an individual user rarely makes a trust decision at all. - RFC 8550 says sending agents SHOULD include their certificates in outgoing messages, so one signed message usually hands a correspondent everything needed to reply encrypted. The cost is dependency: every participant needs a certificate from an issuer that the other side's clients trust, and revocation is an act of the issuer rather than of the user. ## OpenPGP: identity asserted by keyholders In OpenPGP each user generates their own key pair. The key carries one or more **User IDs**, usually a name and a mail address, each bound to the key by a self-signature. - Other keyholders add **certification signatures** to a User ID to say they believe the key belongs to that person. RFC 9580 defines four types, from `0x10` (generic) to `0x13` (positive), but notes that most implementations issue the generic one and few distinguish them. - A **Trust Signature** subpacket lets a certifier also say the holder is a trusted introducer, with a level and an amount; amounts of 120 or more mean complete trust. - RFC 9580 says OpenPGP "places final authority for validity upon the receiver of a signature". Each user decides whose certifications count. The graph of who certified whom is what NIST SP 800-177 Rev. 1 calls the **Web-of-Trust**: a key is accepted because keys the receiver trusts have certified it. The model can express a top-down hierarchy (one organisational key certifying every employee) as easily as peer-to-peer vouching, but it asks users to understand what they are certifying, and NIST observes that it "has not seen widespread adoption". ## Trust on first use and fingerprint checks Many OpenPGP users never build a web of trust at all. Simpler habits fill the gap: 1. **Fingerprint verification**: compare the key's fingerprint with its owner over a channel already trusted, such as in person or on a call, then certify the key or mark it valid locally. 2. **Trust on first use (TOFU)**: accept the first key seen for an address and warn only if it later changes. This catches a later substitution, not a wrong key at first contact. 3. **Domain publication**: fetch the key from the recipient's own mail domain over HTTPS or from a DNSSEC-signed zone, so the domain operator vouches for it. ## Side by side | | S/MIME | OpenPGP | |---|---|---| | Who binds key to address | A CA issues a certificate | The user creates the key; others certify it | | Who decides validity | Path to a trust anchor in the client | Each receiver's own policy | | Usual anchor | Centrally managed CA roots | Certifications, fingerprints, first use, domain publication | | Revocation | The CA revokes the certificate | A revocation signature made with the key itself | | Message format | CMS bodies (`application/pkcs7-mime`, `application/pkcs7-signature`) | OpenPGP packets, carried by PGP/MIME (RFC 3156) | ## What it means for an organisation - A managed fleet whose clients already trust a common set of issuers gets S/MIME with little user effort; S/MIME support is built into many mail clients and enterprise platforms. - A loose community with no common authority, such as volunteers or independent researchers, can use OpenPGP without buying anything, at the price of each member making trust decisions and often installing an add-on. - The two do not interoperate: a key, signature or encrypted message in one format means nothing to a client that speaks only the other, so choosing one is choosing it for every correspondent.

  • Can an OpenPGP deployment behave like a hierarchy?
    Yes. An organisation can run one key that certifies every employee's User ID, and staff mark that key as a fully trusted introducer; a Trust Signature combined with a Regular Expression subpacket can limit that trust to addresses in the organisation's own domain. The result resembles a private CA, but each client must still be configured to trust that key, because OpenPGP leaves validity to the receiver.
  • Why does trust on first use protect less than it seems?
    It detects a key that changes after first contact, but it accepts whatever key arrives first. If the first key fetched was the wrong one, for example from a keyserver that accepts uploads from anyone, the client pins the wrong key and later warns about the real one. Checking the fingerprint out of band, or fetching the key from the recipient's own domain, closes that gap.

An S/MIME certificate is like a passport: a border guard accepts it because a government the guard already recognises issued it. An OpenPGP key is like a letter of introduction: it is worth exactly as much as your own trust in the people who signed it.

  • OpenPGP keys are issued and certified by a certification authority, just like S/MIME.
  • In S/MIME each user must personally vouch for every correspondent's certificate.
  • An S/MIME client can decrypt OpenPGP mail because both use public-key cryptography.
  • Certifying someone's OpenPGP key means you trust their judgement about other keys.
  • Trust on first use proves that the first key received is genuine.
open as a page

How does an OpenPGP sender find a new correspondent's key through Web Key Directory, OPENPGPKEY records or a keyserver, and what does each prove?

level: middleimportance: should knowfreq 16%

basics

~20 s

Web Key Directory fetches the key over HTTPS from the recipient's mail domain; OPENPGPKEY fetches it from a DNSSEC-signed zone; a public keyserver returns whatever anyone uploaded. The first two mean the domain published it; a keyserver result proves nothing.

open as a page

When a volunteer's OpenPGP key is compromised, how do mail correspondents learn not to use it, compared with a revoked S/MIME certificate?

level: seniorimportance: should knowfreq 14%

basics

~20 s

An S/MIME certificate is revoked by its CA, and clients check revocation status. An OpenPGP key is revoked by a revocation signature made with that key, which correspondents see only when they refresh it from wherever it is published.

open as a page

S/MIME or OpenPGP: how would you choose for a foundation exchanging encrypted vulnerability reports with volunteers and a partner company's lawyers?

level: principalimportance: should knowfreq 24%

basics

~20 s

Choose by who controls the clients and who can vouch for identities. Managed clients that already trust common issuers favour S/MIME; independent volunteers with no shared authority favour OpenPGP. Because they do not interoperate, mixed audiences often need both.

open as a page

In OpenPGP's web of trust, what is the difference between a key's validity and the owner trust you assign to its holder?

level: middleimportance: nice to knowfreq 12%

basics

~20 s

Validity says a key really belongs to the person named in its User ID. Owner trust says how far you rely on that person when they certify other keys. A fully valid key can carry no owner trust at all.

open as a page