HTTP 496 nginx Client Certificate Required

An empty certificate reader waits in front of a rack server

nginx uses the internal code 496 when a client does not present the certificate required by the selected server configuration. The visible error page or status depends on how the server handles that internal code.

Identify the TLS connection that needs a certificate

In a mutual TLS deployment, the application or an intermediary can be the TLS client of nginx. A plain TCP tunnel can carry the original client’s TLS exchange. A reverse proxy that terminates and then starts its own TLS exchange has to use the credentials configured for that next connection.

Confirm certificate selection

Check the hostname, TLS profile and approved client certificate or key-store settings for the connection that failed. If nginx received a certificate and was unable to validate it, consult 495 Client Certificate Error for the verification path.

Trace a missing client certificate to the right process

A browser can present a device certificate to a load balancer and reach a dashboard through that first TLS connection. If the balancer starts a new TLS connection to nginx and has no client certificate configured there, nginx may record 496 on the second connection. Confirm which endpoint starts each TLS session and whether it has the expected credential. For a direct connection that fails, check that the selected client process can access its assigned certificate.

Compare the certificate request with the connection that failed

A certificate can be installed on the machine and still go unused by the client. Check that the client is using the expected profile and that the intended virtual host is selected. If you operate nginx, the $ssl_client_verify value NONE indicates no client certificate was present. A 496 is distinct from a challenge for HTTP proxy credentials, which uses 407 Proxy Authentication Required and is resolved in the client's proxy authentication settings.

nginx SSL module documentation.

All HTTP status codes · All proxy testing guides · Open the proxy tester