skip to content

Before an S/MIME client shows a signed message's sender as verified, what must it check beyond the signature itself, and what makes it warn?

level: seniorimportance: should knowfreq 26%

answer

  1. the signature proves a key, not a person
  2. which header gets compared
  3. certificates with no address at all
  4. trusting one certificate, not a whole CA

basics

~20 s

It must validate the signer's certificate to an accepted trust anchor and, under RFC 8550, check that the From or Sender address matches a mail address in it. A mismatch, untrusted chain or expired certificate should trigger a visible warning.

solid answer

~50 s

A valid signature only proves the message was signed with the key in some certificate. Before saying who sent it, the client validates that certificate to a trust anchor it accepts for mail (path validation and revocation are separate subjects) and then binds it to the message: RFC 8550 says receiving agents MUST check that the address in the `From` or `Sender` header matches an Internet mail address in the signer's certificate, when the certificate holds any. The domain part MUST be compared case-insensitively and the local part SHOULD be. If the comparison fails, the client SHOULD process the message visibly differently, for example by showing the addresses the certificate does contain. A certificate with no address MUST still be accepted, and a client may bind it to a correspondent through its address book, which is also how a user trusts one partner's certificate without trusting that partner's whole CA.

go deeper

for a junior

Recall that a signature proves which key signed, and the client must also see that the certificate names the sender's address before calling it verified.

for a middle

Explain RFC 8550's From or Sender comparison, case-insensitive domains, and that a certificate without an address is accepted and bound through the address book.

for a senior

Diagnose valid-signature warnings: role addresses, aliases, certificates without addresses, and chains that end at an anchor the client does not accept.

for a principal

Decide per partner between accepting its CA for email and binding single certificates to mailboxes, owning the breadth of trust against renewal upkeep.

## A signature proves a key, not a sender Verifying an S/MIME signature shows that the signed content was not changed and that it was signed with the private key matching the public key in a particular certificate. It does not, by itself, say that the person named in the `From` header sent it. Two more links have to hold before a client can honestly display "signed by [email protected]": 1. **The certificate is trustworthy**: it validates up to a trust anchor the client accepts for email, is within its validity period and is not revoked. How the path is built and checked, and how revocation is consulted, are covered with certificate path validation and revocation; here they are a single gate. 2. **The certificate belongs to the sender**: the address in the message matches an address in the certificate. RFC 8550's security considerations say the software should take "immediate and noticeable steps" to inform the user when a certificate is not provably valid and associated with the message, and list failures including: no mail address in the certificate matches the sender, no chain leads to a trusted CA, the certificate is expired, and the certificate has been revoked. ## The address check, as RFC 8550 states it RFC 8550 section 3 sets the rules: - Sending agents SHOULD make the `From` or `Sender` address match an address in the signer's certificate. - Receiving agents **MUST** check that the address in the `From` or `Sender` header matches an Internet mail address in the signer's certificate, **if mail addresses are present in the certificate**. - Addresses SHOULD be in the `subjectAltName` extension (as an `rfc822Name`), but receivers MUST also recognise the legacy `emailAddress` attribute in the subject name, and internationalised addresses (RFC 8398, since replaced by RFC 9598). - Comparison: the domain part MUST be compared case-insensitively; the local part SHOULD be. RFC 8550 warns that comparing addresses is "fraught with peril", because a site may apply its own transformations a client cannot know. - On failure, the receiving agent SHOULD provide explicit alternate processing, such as showing the user the addresses in the certificate. When it shows any verification result, it SHOULD display the subject name or other certificate details. The header compared is the message's `From` or `Sender`, not the SMTP envelope sender, `Return-Path` or `Reply-To`. ## Cases an administrator meets | Situation | What the client should do | |---|---| | Certificate for `[email protected]`, message `From: [email protected]`, chain trusted | show as verified, with certificate details | | Same certificate, message sent `From: [email protected]`, a shared role address | signature valid, address mismatch: warn and show the certificate's address | | Certificate for `[email protected]`, message from `[email protected]` | domain matches case-insensitively; local part normally treated the same | | Certificate carries no address at all | MUST be accepted; the client may bind it to an address through its address book | | Address matches, chain does not reach an accepted anchor | warn: the signer is unknown, however well the addresses match | The role-address case is the common help-desk ticket: a person signing with their personal certificate while sending as a team mailbox is shown as a mismatch whenever the certificate does not also list the team address, and the fix is a certificate issued for the address actually used, not a client setting. ## Trust anchored per mailbox Not every partner's certificate chains to an anchor your clients already accept. A partner may run a private CA, or a person may present a self-signed certificate. RFC 8550 section 2.3 says receiving agents SHOULD NOT simply trust self-signed certificates arriving in messages as CAs, but SHOULD use some other mechanism to decide. Two such mechanisms exist at the mail-client level: - **Accept the partner's CA as an anchor for email.** Everything that CA issues becomes acceptable, for any address it chooses to put in a certificate. The address check compares a message with its certificate; it does not limit which addresses a CA may vouch for. - **Bind one certificate to one correspondent.** The user or administrator records that this specific certificate belongs to this address, much like the address-book association RFC 8550 permits for certificates that carry no address. Only that certificate is trusted, only for that mailbox. The cost is maintenance: each renewal needs the binding redone. The SMIMEA usage that pins an end-entity certificate in DNS is the published, domain-run form of the same per-mailbox idea. ## What to say in an interview - "Verified" is a conjunction: valid signature, trusted and current certificate, and an address match when the certificate has addresses. - The comparison uses `From` or `Sender`, with case-insensitive domains. - A warning on a valid signature is usually an address or anchor problem, and the right fix is a properly issued certificate or a deliberate trust decision, not teaching users to click past it.

  • Why should a client display certificate details next to an S/MIME verification result?
    Because the reader needs to see who the certificate actually names. RFC 8550 says a receiving agent SHOULD display a subject name or other certificate details with any indication of successful or failed verification, so a valid signature by an unexpected party is not mistaken for one by the person in the From header.
  • What is the trade-off between trusting a partner's private CA and binding individual partner certificates to their mailboxes?
    Trusting the CA is one decision that covers every certificate it issues, but it accepts that CA's word for any address, including addresses outside the partner's domain. Per-mailbox binding trusts only the certificates you recorded, for those addresses, but every renewal or new correspondent needs a new binding.

  • A valid signature proves the From header's address sent the message.
  • The client compares the SMTP envelope sender with the certificate.
  • A certificate with no email address must be rejected outright.
  • Address checks limit which addresses a trusted CA can vouch for.
  • Self-signed certificates in a signed message can be trusted as CAs.