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…
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…
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…
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…
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.
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…
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.
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).
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…
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…
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…
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.
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…
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…
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…
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…
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…
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,…
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.
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…
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.
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…
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.
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.
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.
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…
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.
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…
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.
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…
ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY Chrome: ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY — HTTP/2 requires a modern TLS cipher The server speaks HTTP/2 but negotiated a TLS version or cipher that HTTP/2 forbids (blocklisted ciphers or T…
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.
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…
too many certificates already issued Let's Encrypt: urn:ietf:params:acme:error:rateLimited :: too many certificates (5) already issued for this exact set of identifiers in the last 168 hours You hit a Let's Encrypt rate limit — too many certificates, failed validations or new orders in a period.
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.
no "ssl_certificate" is defined for the "listen ... ssl" directive Nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/sites-enabled/default:3 A server block listens with `ssl` but has no `ssl_certificate` and `ssl_certificate_key`.
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.
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…
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…
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.
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.
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.
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…
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…
tlsv1 alert protocol version OpenSSL: error:14094410 / SSL alert number 70 — tlsv1 alert protocol version The server rejected the TLS version your client offered, because it requires a newer (or older) protocol.
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…
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…
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…
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…
no alternative certificate subject name matches target host name curl: (51) SSL: no alternative certificate subject name matches target host name 'example.com' The certificate's names (SANs) don't include the host curl connected to.
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.