How to fix: Subject Alternative Name (SAN) Missing
The TLS certificate does not include a Subject Alternative Name (SAN) extension. Modern browsers and APIs only trust certificates that list hostnames in SAN. The legacy CN field is ignored.
Why it matters
A certificate without SAN is treated as untrusted by current browsers and modern TLS libraries, breaking HTTPS for end users with a hard error page.
RFC 2818 deprecated the use of Common Name (CN) for hostname verification in favor of the SAN extension. Browsers and libraries that follow the RFC will reject the certificate if SAN is missing, even if CN matches.
How to fix it
- 1Reissue the certificate with all required hostnames in the SAN extension.
- 2Use certbot or acme.sh with -d flags to ensure SAN is populated.
Code examples
Inspect SAN
openssl s_client -connect example.com:443 < /dev/null 2>/dev/null | openssl x509 -noout -ext subjectAltNameGenerate CSR with SANs
openssl req -new -key server.key -out server.csr \
-subj '/CN=example.com' \
-addext 'subjectAltName=DNS:example.com,DNS:www.example.com'References
Detected automatically by VulnRadar. The check id is tls-cert-san-missing, stable across every scan so you can filter or diff on it.
More tls checks
Questions
- How severe is Subject Alternative Name (SAN) Missing?
- VulnRadar rates this high severity in the tls category. The severity is fixed per check, not scored per site, so the same finding is the same severity on every scan.
- Does VulnRadar check for this automatically?
- Yes. It runs as part of every scan under the check id tls-cert-san-missing, which stays the same between runs so you can filter, diff, or gate CI on it.
- Which standards does Subject Alternative Name (SAN) Missing map to?
- It maps to CWE-295. In the OWASP Top 10 it falls under A02:2021.
Missing a check?
The detection set is open. If you know a misconfiguration this does not catch, propose it: the issue template asks for the threat model, how to detect it, the false-positive risk, and a test fixture, which is the same thing a maintainer would have to work out anyway.