In S/MIME, why does losing your private decryption key cut you off from old encrypted mail, while losing your signing key does not?
answer
- stored mail stays encrypted
- content key wrapped per recipient
- only one party can unwrap
- verification needs only the public key
basics
~20 sS/MIME mail is usually stored still encrypted, and only the recipient's private decryption key unwraps each message's content key, so losing it loses the archive. Signatures verify with the signer's public key, so old signing keys are not needed.
solid answer
~50 sTo encrypt, the sending client picks a random content-encryption key, encrypts the body with it and wraps that key once per recipient with the public key from each recipient's certificate; the body becomes `EnvelopedData` or `AuthEnvelopedData` with one `RecipientInfo` per recipient. Most mail clients leave the message encrypted in the mailbox and unwrap the content key every time it is opened, so every read needs the recipient's private key. Nobody else holds that key unless the organisation or the issuer kept a copy under an escrow or backup arrangement, so with no copy, every message encrypted to it is unreadable for good. Signing runs the other way: the sender's private key makes the signature and anyone verifies it with the public key in the signer's certificate, which the message usually carries. A lost (not stolen) signing key just means a new key for future mail; past signatures still verify.
go deeper
Recall which key does what: the recipient's private key decrypts, the sender's private key signs, and public keys from certificates do the rest. Then say which one an archive depends on.
Explain the content key wrapped per recipient in a RecipientInfo and why stored mail is unwrapped on every read, so the dependency on the private key lasts as long as the mail.
Show you can turn this into operations: backups or key recovery for decryption keys, no extra copies of signing keys, and device replacement that carries every superseded decryption key.
Frame the asymmetry as policy: decryption keys are records assets that need recovery, signing keys are identity assets that should have none, and stored mail may be better decrypted into a protected store.
## Two private keys, two different jobs An S/MIME user holds a **certificate** (a CA-signed statement binding their mailbox address to a public key) and the matching **private key**. Many deployments give each user two key pairs, one for signing and one for decryption, but even a single key pair does two jobs that age very differently. | Operation | Whose key acts | Needed again later? | |---|---|---| | Signing a message | the sender's private key | no: verification uses the sender's public key | | Verifying a signature | the sender's public key, from the certificate | yes, but it is public and travels with the message | | Encrypting a message | each recipient's public key, from their certificate | no | | Decrypting a message | the recipient's private key | **every time the message is opened** | The last row is the whole story of private-key custody: the only key an archive depends on is one that, by design, exists in as few places as possible. ## Why encrypted mail stays encrypted S/MIME encryption is hybrid. The sending client: 1. generates a fresh random **content-encryption key** for this one message; 2. encrypts the message body with it (AES-GCM in `AuthEnvelopedData`, or a CBC-mode cipher in `EnvelopedData`); 3. wraps the content key separately for each recipient with that recipient's public key, producing one `RecipientInfo` per recipient, which names the recipient's certificate by issuer and serial number or by subject key identifier. The recipient's client finds the `RecipientInfo` that matches one of its own certificates, uses the matching **private key** to unwrap the content key, and decrypts the body. Most mail clients do this on every display and leave the stored copy encrypted, on the server and in local caches. The protection therefore lasts as long as the message does, and so does the dependency on the key. ## Who else could open the message - **The sender** used only the recipient's public key, which cannot unwrap anything. The sender's own sent copy is readable to them only because clients commonly add the sender as an extra recipient, which uses the sender's key, not the recipient's. - **The certificate issuer** holds the private key only if it generated it and kept an escrowed copy; the CA/Browser Forum's S/MIME Baseline Requirements (1.0.16, section 4.12) allow a CA to escrow a subscriber key, with notice to the subscriber. - **An administrator** can recover mail only from a key backup or a key-recovery archive the organisation set up in advance. - **Nobody** can derive the private key from the certificate; that is the point of public-key cryptography. So with no backup, escrow or other copy, a lost decryption key means every message encrypted to it is permanently unreadable. The usual trigger is mundane: a replaced laptop, a reinstalled profile, a wiped phone, a smart card that failed. ## Why an old signing key can go A signature is checked with the **public** key in the signer's certificate, and an S/MIME signed message normally carries that certificate. Verifying last year's signed mail therefore never touches the private signing key. When a signing key is lost, the user gets a new key and certificate for future mail; the old signatures still verify against the old certificate. Two distinctions keep this answer honest: - **Lost is not stolen.** If the signing key may have been copied, the certificate must be revoked so verifiers stop trusting new signatures made with it; how verifiers then judge older signatures is a question for certificate validation and revocation, not for custody. - **Keeping old signing keys adds risk without benefit.** A retained signing key can still sign, so a copy left behind is exposure; a retained decryption key can only open mail that was already sent to it. ## What this means for an organisation - Treat the **decryption key as a records asset**: it needs a backup or recovery path that outlives every device it sits on. - Treat the **signing key as an identity asset**: it should exist only where the user signs, and it can be destroyed when replaced. - Plan device replacement around the decryption keys, including the superseded ones from earlier certificates, because each renewal that brought a new key pair left mail that only the old key opens. - Decide in advance whether stored mail stays encrypted under transport keys at all; decrypting it into a protected store removes the dependency, at a cost covered with archive strategy.
- If a signing key was stolen rather than lost, what changes for the user and the organisation?The certificate for that key must be revoked so verifiers stop accepting new signatures from it, and the user gets a new key pair and certificate. Under the CA/Browser Forum's S/MIME Baseline Requirements a public CA that learns a subscriber key was disclosed must revoke the matching certificates. How older signatures are judged after revocation is a validation question, not a custody one.
- Why do mail clients keep received mail encrypted instead of decrypting it once on arrival?Keeping it encrypted means the copy on the server and in every cache stays protected, which matters when the mail store is outside the organisation's control. The cost is that the decryption key must live as long as the mail. NIST SP 800-177 Rev. 1 recommends the opposite for most cases: decrypt before storing and protect the store, or re-encrypt under a separate, changeable key.
Encryption is a padlocked box with a separately sealed key copy for each recipient: lose your key copy and the box stays shut, because the sender kept no copy of yours. A signature is a wax seal anyone can compare against the public impression; losing the signet ring changes nothing about seals already made.
- The sender can reopen the message for you because they encrypted it.
- Old signed messages become unverifiable once the signing key is lost.
- The certificate authority can always regenerate a lost private key.
- A renewed certificate with a new key opens mail sent to the old one.
- Old signing keys must be archived so past signatures stay valid.