Skip to main content
HighTLSOWASP A02:2021CWE-295

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

  1. 1Reissue the certificate with all required hostnames in the SAN extension.
  2. 2Use certbot or acme.sh with -d flags to ensure SAN is populated.

Code examples

Inspect SAN

bash
openssl s_client -connect example.com:443 < /dev/null 2>/dev/null | openssl x509 -noout -ext subjectAltName

Generate CSR with SANs

bash
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.

See every tls check

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.

Propose a checkHow a check is built

Scan your own site for subject alternative name (san) missing

VulnRadar runs this check and hundreds more against a URL in seconds. No agent to install, just paste a URL.

Or scan this site as a demoRead the docs

Subject Alternative Name (SAN) Missing fix | VulnRadar