496 SSL Certificate Required

Internal nginx code for a request that omitted a required client certificate.

Status

HTTP/1.1 496 SSL Certificate Required

Details

Where ssl_verify_client is set to on, nginx requires a client certificate. If none is presented, it logs 496. The client sees a TLS handshake failure or a 400 depending on configuration.

The distinction from 495 is worth keeping: 496 means nothing was sent, 495 means something was sent and did not verify.

Common causes

How to fix it

As the client

As the server

Examples

(nginx access log)
496 "GET /secure/api HTTP/1.1" no client certificate supplied

See also