SSL / TLS errors

SSL/TLS certificate errors — Let’s Encrypt, name mismatches, chains, PEM files and protocol problems.

CodeErrorWhat it means
HTTPSConnectionPool: Max retries exceeded (SSLError) Python requests: HTTPSConnectionPool(host='api.example.com', port=443): Max retries exceeded with url: /v1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] ...'))) The `requests` call failed during the TLS step and exhausted its retries; the real reason is in the nested SS…
SSLCertificateFile: file does not exist Apache: AH02240: Server should be SSL-aware but has no certificate configured / SSLCertificateFile: file '/etc/ssl/x.crt' does not exist or is empty Apache cannot find the certificate or key file named in its configuration, or `SSLEngine on` is set without a…
DST Root CA X3 expired (old clients fail) Old clients: certificate has expired — Let's Encrypt chain uses expired DST Root CA X3 (OpenSSL 1.0.x, Android < 7.1.1) Older systems fail to validate Let's Encrypt certificates because their trust store lacks ISRG Root X1 and re…
Keystore was tampered with, or password was incorrect Java keytool: java.io.IOException: Keystore was tampered with, or password was incorrect keytool or the JVM could not open the keystore — wrong password, wrong file type, or damaged file.
Challenge failed for domain Let’s Encrypt / Certbot: Challenge failed for domain example.com — Invalid response from http://example.com/.well-known/acme-challenge/x: 404 Let’s Encrypt couldn’t verify you control the domain — the HTTP-01 challenge file wasn’t served, or DNS point…
Go TLS Go: tls: first record does not look like a TLS handshake (HTTP server spoken to with HTTPS) A Go TLS client or server received plain HTTP bytes instead of a TLS handshake.
AH01909: server certificate does NOT include an ID which matches the server name Apache: [ssl:warn] AH01909: example.com:443:0 server certificate does NOT include an ID which matches the server name Apache's SSL virtual host name does not match any name inside the certificate it loads.
ACM region CloudFront can't use my ACM certificate: it must be requested in us-east-1 (N. Virginia) The certificate you want to attach to CloudFront isn't listed, because it was created in another region.
incomplete certificate chain SSL Labs: Chain issues: Incomplete — Extra download (intermediate certificate missing) The server sends only its own certificate and not the intermediate CA(s), so some clients cannot build a trus…
The following certs could not be renewed Certbot: Failed to renew certificate example.com with error — The following certs could not be renewed: /etc/letsencrypt/live/example.com/fullchain.pem (failure) `certbot renew` failed for one or more certificates, so they will expire if you don't fix it.
ssl_ciphers nginx: [emerg] SSL_CTX_set_cipher_list("...") failed — invalid ssl_ciphers string The `ssl_ciphers` value contains a cipher or syntax OpenSSL doesn't accept, so nginx won't load the config.
renegotiation unsafe legacy renegotiation disabled (OpenSSL 3) when connecting to an old server OpenSSL 3 refuses to connect to servers that lack RFC 5746 secure renegotiation support.
trust anchor Android: SSLHandshakeException: Trust anchor for certification path not found The Android app doesn't trust the server's certificate chain (missing intermediate, private CA, or old device…
certificate does not have a private key (IIS) Windows/IIS: A specified logon session does not exist / The certificate does not have a private key associated with it IIS cannot bind an HTTPS site because the imported certificate has no private key attached.
DNS problem: NXDOMAIN looking up A Certbot: Detail: DNS problem: NXDOMAIN looking up A for www.example.com - check that a DNS record exists for this domain Let's Encrypt could not resolve the domain you asked a certificate for; no A/AAAA record exists.
gRPC: Ssl handshake failed / authentication handshake failed gRPC: rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority" A gRPC client could not complete TLS to the server — untrusted certificate, name mismatch, or plaintext/TLS m…
Could not establish trust relationship for the SSL/TLS secure channel .NET: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel A .NET client could not validate the server certificate or negotiate TLS, so the HTTPS call failed.
NET::ERR_CERT_COMMON_NAME_INVALID NET::ERR_CERT_COMMON_NAME_INVALID: Your connection is not private (certificate is for a different domain) The certificate presented doesn’t include the hostname you visited — e.g. visiting www.example.com with a cer…
permission nginx: [emerg] cannot load certificate key: BIO_new_file() failed (Permission denied) / open() failed (13: Permission denied) nginx can't read the private key or certificate file, so it refuses to start or reload.
no start line OpenSSL: unable to load certificate / PEM routines:get_name:no start line (key values mismatch) OpenSSL (or Nginx/Apache) couldn’t read the certificate or key — wrong file format, wrong file, or the key do…
Certificate pinning failure! Android/OkHttp: javax.net.ssl.SSLPeerUnverifiedException: Certificate pinning failure! Peer certificate chain: sha256/... Pinned certificates for api.example.com The app's pinned certificate/public-key hash does not match the one the server presented, so OkHttp blocked t…
plugin Certbot: The requested nginx plugin does not appear to be installed (or "No installers found") certbot can't find the nginx/apache plugin, so it can't configure the web server automatically.
SSL_ERROR_RX_RECORD_TOO_LONG Firefox: Secure Connection Failed — SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG Firefox sent a TLS handshake but received plain HTTP back — you used `https://` on a port that serves HTTP.
Received fatal alert: handshake_failure Java: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure The server rejected the Java client's TLS offer — no shared protocol/cipher, SNI issue or a required client c…
CAA record forbids issuance Let's Encrypt/CA: CAA record for example.com prevents issuance The domain's DNS CAA records do not list the certificate authority you asked, so the CA must refuse.
unable to load Private Key OpenSSL/Nginx/Apache: error:0909006C:PEM routines:get_name:no start line / unable to load Private Key The server or tool cannot read the private key file — wrong format, encrypted with a passphrase, wrong path,…
root certificate file "root.crt" does not exist PostgreSQL: root certificate file "/home/user/.postgresql/root.crt" does not exist. Either provide the file or change sslmode The connection string asks for certificate verification (`sslmode=verify-ca` or `verify-full`) but no CA file…
wildcard certificate does not cover a.b.example.com Browser: *.example.com certificate does not match a.b.example.com (ERR_CERT_COMMON_NAME_INVALID) A wildcard certificate covers exactly one label: `*.example.com` matches `www.example.com` but not `a.b.examp…
ERR_SSL_KEY_USAGE_INCOMPATIBLE Chrome: ERR_SSL_KEY_USAGE_INCOMPATIBLE — the certificate's key usage doesn't allow the negotiated cipher The server's certificate Key Usage extension does not permit the key exchange used (typically an RSA certific…
Schannel curl: (35) schannel: next InitializeSecurityContext failed (SEC_E_UNTRUSTED_ROOT / SEC_E_ALGORITHM_MISMATCH) curl on Windows (Schannel) couldn't complete the TLS handshake and shows the underlying SEC_E_ error code.
curl: (60) SSL certificate problem curl: (60) SSL certificate problem: unable to get local issuer certificate curl could not verify the server's certificate — missing CA, incomplete chain, self-signed or expired certifi…
legacy CN Go: x509: certificate relies on legacy Common Name field, use SANs instead Go (1.15+) no longer accepts certificates that only have a CN and no Subject Alternative Name.
NSURLErrorServerCertificateUntrusted (-1202) iOS: Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be 'example.com'" iOS rejected the server's certificate (untrusted issuer, name mismatch, expired, or weak).
No subject alternative names present Java: javax.net.ssl.SSLHandshakeException: No subject alternative names matching IP address 10.0.0.5 found Java checks the hostname against the certificate's SANs and found no matching entry (for DNS names or IPs).
Timeout during connect (likely firewall problem) Let's Encrypt: Fetching http://example.com/.well-known/acme-challenge/token: Timeout during connect (likely firewall problem) The ACME validation server could not reach your server on port 80 within the timeout.
MySQL: SSL connection error: SSL is required but the server doesn't support it MySQL: ERROR 2026 (HY000): SSL connection error: SSL is required but the server doesn't support it The client demanded SSL/TLS (`--ssl-mode=REQUIRED`) but the MySQL server has TLS disabled or no certificates…
ssl_stapling ignored, no OCSP responder URL Nginx: [warn] "ssl_stapling" ignored, no OCSP responder URL in the certificate "/etc/ssl/cert.pem" OCSP stapling is enabled but the certificate (or chain file) contains no OCSP responder, so nginx can't stapl…
UNABLE_TO_VERIFY_LEAF_SIGNATURE Node.js: Error: unable to verify the first certificate (code: UNABLE_TO_VERIFY_LEAF_SIGNATURE) Node could not verify the server's leaf certificate because the intermediate certificates were not provided b…
SSL routines: wrong version number OpenSSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number The peer did not answer with a TLS record — you spoke TLS to a plain HTTP/SMTP port (or the reverse), or a pr…
SSLProxyEngine Apache: AH01961 SSL Proxy requested for ... but not enabled [Hint: SSLProxyEngine] Apache is proxying to an HTTPS backend but the proxy TLS engine is off.
Invalid response from .well-known/acme-challenge: 404 Certbot: Detail: Invalid response from http://example.com/.well-known/acme-challenge/abc: 404 Let's Encrypt reached your server but the challenge file was not found at `/.well-known/acme-challenge/`, so…
Incorrect TXT record found at _acme-challenge Certbot: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.example.com / Incorrect TXT record The DNS-01 challenge could not find (or found the wrong) `_acme-challenge` TXT record for the domain, so the…
Problem binding to port 80: Could not bind to IPv4 or IPv6 Certbot: Problem binding to port 80: Could not bind to IPv4 or IPv6 (standalone authenticator) `certbot --standalone` needs to listen on port 80 for the HTTP-01 challenge but another process (Nginx, Apach…
CRYPT_E_NO_REVOCATION_CHECK curl (Windows Schannel): schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation function was unable to check revocation for the certificate Windows could not contact the CA's CRL/OCSP servers to check whether the certificate is revoked, so Schannel…
SEC_ERROR_EXPIRED_CERTIFICATE Firefox: Peer's Certificate has expired. Error code: SEC_ERROR_EXPIRED_CERTIFICATE Firefox found an expired certificate in the chain presented by the server.
sslv3 alert handshake failure OpenSSL: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure (SSL alert number 40) The server aborted the handshake with alert 40 — no acceptable parameters (cipher, signature algorithm, clien…
EOF occurred in violation of protocol Python: ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396) The server closed the TLS connection abruptly without a proper shutdown, usually because it rejected the hand…
Could not automatically find a matching server block Certbot: Could not automatically find a matching server block for example.com. Set the `server_name` directive to use the Nginx installer Certbot's Nginx plugin could not find a `server` block whose `server_name` matches the domain you requested.
error setting certificate verify locations curl: (77) error setting certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt CApath: none curl cannot read the CA bundle file it is configured to use — missing file, wrong path or permissions.
SSL_ERROR_BAD_CERT_DOMAIN Firefox: Websites prove their identity via certificates — the certificate is only valid for other names. Error code: SSL_ERROR_BAD_CERT_DOMAIN The certificate does not include the hostname you typed.
SSL_CTX_use_PrivateKey_file failed (key values mismatch) Nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/ssl/server.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch) The private key does not belong to the certificate configured in the server.
DEPTH_ZERO_SELF_SIGNED_CERT Node/OpenSSL: Error: self signed certificate (code: DEPTH_ZERO_SELF_SIGNED_CERT) The server presented a self-signed certificate (issuer equals subject), which no CA vouches for.
PKCS12: Mac verify error: invalid password? OpenSSL: Error outputting keys and certificates — Mac verify error: invalid password? A `.p12`/`.pfx` file could not be opened because the password is wrong, or its encryption is unsupported by y…
ca md too weak / ee key too small OpenSSL: error:0A00018E:SSL routines::ca md too weak / error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small OpenSSL's security level rejected a certificate signed with a weak hash (MD5/SHA-1) or with a small key (RSA…
tlsv1 unrecognized name (SNI) OpenSSL: SSL alert number 112 — tlsv1 unrecognized name The server did not recognise the hostname sent in SNI and rejected the handshake (or an alert/warning is logg…
client auth Apache AH01895: Unable to configure verify locations for client authentication (SSLCACertificateFile) Apache can't load the CA bundle used to verify client certificates, so it fails to start.
Caddy Caddy: obtaining certificate failed — ACME challenge error (port 80/443 blocked or DNS wrong) Caddy can't get a certificate automatically, so HTTPS isn't available for the site.
SSL_CTX_set_tmp_dh failed: dh key too small Nginx: [emerg] SSL_CTX_set_tmp_dh("/etc/ssl/dhparam.pem") failed (SSL: error:1401E0A8:SSL routines:... dh key too small) The Diffie-Hellman parameters file is too weak (e.g. 512 or 768 bit) for the current OpenSSL security level.
unable to get local issuer certificate OpenSSL: error:num=20:unable to get local issuer certificate / SSL: CERTIFICATE_VERIFY_FAILED The client could not build a chain from the server's certificate to a CA it trusts — the issuer is missing lo…
verify error:num=10: certificate has expired OpenSSL: verify error:num=10:certificate has expired — notAfter=Jan 1 00:00:00 2025 GMT OpenSSL's verification found a certificate in the chain whose validity period has ended.