cavekit-certificate-trust.md R4 / T-534. retryDueToTLSIntolerance remembered ANY handshake error not on its
short exclusion list as intolerance at the connection's maximum version and retried one version lower. With
TLS 1.3 on (security.tls.version.max 4) that turns every certificate-verification failure against a TLS 1.3
server into a second attempt at TLS 1.2, which trips the server's downgrade sentinel (RFC 8446 §4.1.3), so
NSS reports SSL_ERROR_RX_MALFORMED_SERVER_HELLO — and the user reads "malformed Server Hello" for a revoked
certificate (ssl.com's and DigiCert's revoked demo hosts, measured 2026-10-25; the same hosts at a TLS 1.2
cap say SEC_ERROR_REVOKED_CERTIFICATE; badssl.com, a TLS 1.2 server, never showed it). The retried socket
also carries no certificate verdict (nsITransportSecurityInfo.errorCode 0), so an embedder cannot recover
the real error either. Now a SEC_ERROR_* / mozilla::pkix / SSL_ERROR_BAD_CERT_DOMAIN failure is never a
reason to retry lower.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
NPN was removed from NSS a long time ago, this effectively does nothing.
ALPN also should be default-enabled (we do this by pref but the component
itself should have a sane default) so this was flipped as a drive-by fix.
Resolves#2723
Apparently a prehistoric server implementation would send a certificate_authorities field
that didn't include the outer DER SEQUENCE tag, so PSM attempted to detect this and
work around it.
This prehistoric server implementation isn't in use anywhere anymore, so this 18-yo
server bug workaround can be removed.
This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables).
Stub resolution/removal should be a follow-up to this.