forked from upstream/UXP-mirror
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>