SSL ERRORS
ERR_BAD_SSL_CLIENT_AUTH_CERT: causes and fixes
The service rejected or could not use the client certificate for TLS authentication. This concerns the client identity as well as the server’s TLS configuration.
What it means
With mutual TLS, the server checks the client certificate and proof that the client holds its private key. Check the client’s validity dates, intermediate chain, allowed issuer and the server’s authorization policy.
What to check
- Confirm the endpoint intentionally requires mutual TLS and identify the expected client identity.
- Inspect client-certificate validity, chain and access to its matching private key without sharing the key.
- Read server-side authentication logs and compare the accepted issuer/policy with a working client.
Test the connection
openssl s_client -connect api.example.com:443 -servername api.example.com \
-cert client-cert.pem -key client-key.pem -cert_chain client-chain.pem \
-verify_hostname api.example.com -verify_return_error </dev/nullUse your client certificate, intermediate chain and matching private key with OpenSSL 3.x.
How to fix it
- Install or select the correct approved client certificate and matching key.
- Supply the required client intermediates and correct the service’s intended issuer or authorization configuration.
- Replace an expired or revoked client identity through its issuing process.
Check the fix
Retest with the client credentials and normal server verification. Distinguish a successful TLS client-authentication step from any subsequent HTTP authorization response.
Details worth checking
A renewed client certificate may need to be selected again in the browser or application. Check the selected identity and its matching key before changing the server certificate.
Related guides
- Diagnose TLS handshake, protocol and cipher failures
- Monitor custom TLS ports, STARTTLS and private services