Find why your server rejects the client certificate

ERR_BAD_SSL_CLIENT_AUTH_CERT means your server asked the browser for a client certificate during the TLS handshake, then rejected what it got: no certificate at all, an expired or revoked one, or one from an authority the server doesn't trust. If your site shouldn't require client certificates, look for mutual TLS switched on by mistake. If it should, check the visitor's certificate and the authorities your server accepts.

Why the server rejects the browser

  • Client certificates required by mistake

    A server, load balancer or CDN set to require client certificates, often called mutual TLS, can end the handshake for every visitor who doesn't have one, and Chrome's page then says the site didn't accept the visitor's login certificate. Some servers finish the handshake instead and answer with an HTTP 400 page, so visitors see that page rather than this error.

  • No certificate was sent

    A TLS 1.3 server that requires a certificate answers an empty one with a certificate_required alert. Older setups send a generic handshake failure instead, and Chrome reports that as this error too when it was asked for a certificate and sent none.

  • The certificate failed the server's checks

    Alerts such as certificate_expired, certificate_revoked, unknown_ca and bad_certificate mean the server checked the certificate the visitor picked and refused it. Chrome shows all of them as this error.

  • Access rules refused a valid certificate

    An access_denied alert means the certificate checked out, but the server's access rules decided not to let it in.

Chromium's openssl_ssl_util.cc lists the alerts that become ERR_BAD_SSL_CLIENT_AUTH_CERT, and ssl_client_socket_impl.cc adds the handshake failure after a certificate request. RFC 8446 lets a server abort with certificate_required when no certificate arrives, and section 6.2 defines each alert. Chrome's page wording is in its error page strings. nginx is one server that handles a missing or failed client certificate after the handshake, as an HTTP error.

Test the client certificate check

# These tests need OpenSSL 1.1.1 or later: the openssl that ships with macOS is
# LibreSSL, which rejects -verify_quiet and prints less about certificate requests

# Does the server ask for a client certificate, and from which authorities?
echo | openssl s_client -connect yoursite.com:443 -servername yoursite.com 2>/dev/null \
  | grep -E -A3 "client certificate CA names" | cut -c1-80

# Send a request with no client certificate and see how the server answers
printf 'GET / HTTP/1.1\r\nHost: yoursite.com\r\nConnection: close\r\n\r\n' \
  | openssl s_client -connect yoursite.com:443 -servername yoursite.com -quiet -verify_quiet 2>&1 | head -n 3

# Send the same request with a client certificate and its key
printf 'GET / HTTP/1.1\r\nHost: yoursite.com\r\nConnection: close\r\n\r\n' \
  | openssl s_client -connect yoursite.com:443 -servername yoursite.com -quiet -verify_quiet \
      -cert client.pem -key client.key 2>&1 | head -n 3

Read what openssl prints

  • Acceptable client certificate CA names, followed by authority names, means the server asks for a certificate and lists the issuers it accepts. No client certificate CA names sent means it named none: if a Client Certificate Types or Requested Signature Algorithms line comes next, the server still asks for a certificate, and if the output moves on to lines such as Peer signing digest, it doesn't ask at all.

  • In the request tests, an HTTP/1.1 status line means the handshake went through, though a 400 there can still mean the server refused the certificate afterward. An error line ending in SSL alert number 116 is certificate_required, 40 is the generic handshake_failure a TLS 1.2 server sends when no certificate arrives, 48 is unknown_ca, 45 is certificate_expired, 44 is certificate_revoked and 49 is access_denied, each numbered in RFC 8446. OpenSSL's s_client manual covers -cert, -key and -quiet.

How to fix a rejected client certificate

  1. Decide whether the site should askPublic pages shouldn't require client certificates. If the requirement is a mistake, turn it off, or make it optional, on the server, load balancer or CDN that handles HTTPS.
  2. Keep certificate checks on their own hostnamePut pages that need client certificates, such as an admin area or a partner API, on a separate hostname so the public site never asks visitors for one.
  3. Trust the right authoritySet the server's trusted client authorities to the one that issues your users' certificates, including any intermediate certificates the server needs to build the chain.
  4. Reissue expired or revoked certificatesA user whose certificate expired or was revoked needs a new one installed on their device before the server will accept them.

Frequently asked questions

Is my site's SSL certificate the problem?

No. This error concerns the certificate the visitor's browser sends to prove who they are, not the certificate your server sends. Problems with your own certificate have their own codes, such as NET::ERR_CERT_DATE_INVALID for an expired one.

Can a firewall cause this error?

It can, if it sends a certificate alert. Chromium's ssl_client_socket_impl.cc notes that some firewalls block pages with an access_denied alert, and when no certificate was requested, Chrome shows ERR_SSL_PROTOCOL_ERROR for it. That check only covers access_denied, though: other certificate alerts, such as unknown_ca or bad_certificate, show ERR_BAD_SSL_CLIENT_AUTH_CERT whether or not anything asked for a certificate, as openssl_ssl_util.cc maps them.