In an S/MIME mailbox certificate, where must the mailbox address be encoded, and how are aliases and non-ASCII addresses handled?
answer
- an extension, not the subject name
- one name entry per address
- IA5String cannot carry UTF-8
- an otherName form for internationalized mail
basics
~20 sIn the subjectAltName extension: an rfc822Name for an ASCII address, an otherName of type id-on-SmtpUTF8Mailbox when the local part is non-ASCII. Every address the holder sends from needs its own entry; the subject emailAddress attribute is legacy.
solid answer
~40 sRFC 8550 (S/MIME 4.0 certificate handling) says the address SHOULD be in `subjectAltName` and SHOULD NOT be in the subject distinguished name, and RFC 5280 requires new certificates that carry a mail address to use `rfc822Name`, calling the PKCS #9 `emailAddress` subject attribute deprecated but permitted. An ASCII local part goes in `rfc822Name`; a non-ASCII local part MUST go in an `otherName` of type `id-on-SmtpUTF8Mailbox` (RFC 8398), and 4.0 made recognising both forms a receiving-agent MUST. `subjectAltName` is a list, so a person who sends as several aliases needs each one listed, because a receiving client compares the From or Sender address with the addresses in the certificate. The CA/Browser Forum S/MIME Baseline Requirements (1.0.16) make the extension mandatory and require any address in the subject to be repeated there.
go deeper
Remember that a mail certificate names its mailbox in the subjectAltName extension, as an rfc822Name entry, and that a recipient's client compares it with the sender's address.
Explain rfc822Name against the legacy emailAddress attribute, why non-ASCII local parts need the SmtpUTF8Mailbox otherName, and why each alias needs its own entry.
Show you can read a certificate behind an address-mismatch complaint: missing aliases, an address only in the common name, or a client that predates internationalized-address support.
Frame the address list as a provisioning decision: aliases and role mailboxes are collected before ordering, because every change means reissuing and redistributing the certificate.
## Why the address is the identity An S/MIME certificate binds a public key to a **mailbox address**. When a recipient's mail client verifies a signed message, it compares the address in the message's From (or Sender) header with the addresses the certificate holds; when a sender encrypts, the client picks the certificate that belongs to the recipient's address. If the address sits in the wrong place, or is missing, the certificate may be cryptographically perfect and still be useless for mail. That is why mail administrators care where the address is encoded. ## Where it goes: subjectAltName The **subject alternative name** extension (`subjectAltName`) is a list of names, each one a typed `GeneralName`. RFC 8550, the S/MIME 4.0 certificate-handling specification, is explicit: - The address **SHOULD** be in `subjectAltName` and **SHOULD NOT** be in the subject distinguished name. - If the local part (left of the `@`) is **ASCII**, it **MUST** be encoded as an `rfc822Name`. - If the local part is **not ASCII**, it **MUST** be encoded as an `otherName` of type `id-on-SmtpUTF8Mailbox`, defined in RFC 8398. - Several addresses **MAY** be present, because the extension is a sequence. RFC 5280, the general X.509 profile, says the same from the other side: a CA generating a new certificate with a mail address **MUST** use `rfc822Name` in `subjectAltName`. The `rfc822Name` is an envelope mailbox (`[email protected]`), never a display name with angle brackets. ## The legacy subject attribute Before subject alternative names were common, addresses were placed in the subject distinguished name using the PKCS #9 `emailAddress` attribute. RFC 5280 now calls putting it there for older software **deprecated but permitted**, and RFC 8550 still requires receiving agents to **recognise** an address found there. The CA/Browser Forum S/MIME Baseline Requirements (version 1.0.16, 28 September 2026) allow it in the subject, but any mailbox address in the subject **SHALL be repeated** in `subjectAltName`. In practice, read the extension first; treat the subject attribute as a copy. | Location | Status | Who reads it | |---|---|---| | `subjectAltName` `rfc822Name` | Required form for ASCII addresses | Every S/MIME 4.0 receiver | | `subjectAltName` `otherName` `id-on-SmtpUTF8Mailbox` | Required form for non-ASCII local parts | S/MIME 4.0 receivers (MUST since 4.0) | | Subject `emailAddress` attribute | Deprecated, permitted, must be repeated in the extension | Receivers still recognise it | | Subject `commonName` | A label; RFC 8550 names no address check here | Not a location receivers are required to check | ## Non-ASCII addresses `rfc822Name` is an `IA5String`, which holds only ASCII. An internationalized address such as one with a Cyrillic or accented local part cannot be stored there, which is why RFC 8398 created the `SmtpUTF8Mailbox` form, a UTF-8 string carried in an `otherName`. S/MIME 4.0 changed the rule set: RFC 8550 lists support for internationalized addresses as **required**, so a receiver that only understands `rfc822Name` is not compliant. The Baseline Requirements accept either form and require at least one of them. ## Aliases, shared mailboxes and comparisons Practical consequences for an organisation ordering certificates: 1. **List every address a person signs from.** If Alice sends as `[email protected]` and as `[email protected]`, both must be entries; a client does not infer one from the other. 2. **Adding an alias means a new certificate.** The names are signed into the certificate, so they cannot be appended later. 3. **Role mailboxes are possible.** The Baseline Requirements define the subject as the subscriber or a mailbox the subscriber controls, so a shared address such as `[email protected]` can have its own certificate. 4. **Comparison is not plain string equality.** RFC 8550 says the domain **MUST** be compared case-insensitively and the local part **SHOULD** be; sites that apply other transformations to local parts cannot expect clients to know them. A certificate may even have an **empty subject** name; then the identity lives only in `subjectAltName`, which RFC 8550 says **MUST** be marked critical. RFC 8550 also says receiving agents **MUST accept** certificates that carry no address at all, and may associate one through an address book; how a client decides to show a sender as verified is covered with certificate discovery and trust. ## Checking what is in force Dump the certificate and read the extension, not the subject line: - `subjectAltName` lists each `rfc822Name` (or `SmtpUTF8Mailbox`) entry. - The subject shows whether an `emailAddress` attribute was added for older software. - A missing alias, or an address present only in the common name, explains a recipient's address-mismatch warning before anyone suspects the signature itself.
- A certificate lists [email protected], but Alice's client sends as [email protected]. Does the S/MIME address comparison fail?Usually not. RFC 8550 says the domain MUST be compared case-insensitively and the local part SHOULD be, so a compliant client treats these as the same mailbox. Differences beyond case, such as a site's own rewriting of local parts, are not something a client can know about, so the certificate should list the exact addresses people send from.
- Can an S/MIME end-entity certificate have an empty subject distinguished name?Yes. RFC 8550 allows a user certificate's subject to be an empty sequence; the identity then lives only in subjectAltName, which MUST then be marked critical. The Baseline Requirements mirror it: the extension SHOULD NOT be critical unless the subject is empty.
- An employee gets a new alias after her certificate was issued. What happens to messages she signs from it?The address list is signed into the certificate, so it cannot be extended. Messages signed while sending as the new alias fail the receiver's From-to-certificate address check and show a mismatch warning until a new certificate listing the alias is issued. Collect alias lists before ordering.
- Clients read the mailbox address from the subject common name.
- The subject emailAddress attribute is the preferred modern place for the address.
- A UTF-8 local part fits in rfc822Name like any other string.
- One certificate automatically covers every alias in the same domain.
- S/MIME clients must reject any certificate that carries no mail address.
Assumes S/MIME 4.0 (RFC 8550, 2019), which made recognising internationalized addresses in subjectAltName a receiving-agent requirement, a change from 3.2 (RFC 5750).