SAN

A certificate extension that lists every host name, address or other identity the certificate is valid for.

In more detail

SAN stands for subject alternative name. Browsers and other clients match the name they connected to against this list, not against the common name in the subject, so a certificate whose list lacks the requested name fails with a host name mismatch. One certificate can list several names, such as a bare domain and its www form.

Examples

-addext "subjectAltName=DNS:www.example.com,DNS:example.com"
openssl verify -verify_hostname shop.example.com www.pem  ->  hostname mismatch

Related terms

Taught in

References