495 SSL Certificate Error

Internal nginx code for a client certificate that was provided but failed verification.

Status

HTTP/1.1 495 SSL Certificate Error

Details

In mutual TLS setups, nginx logs 495 when the client presented a certificate that did not verify: wrong CA, expired, revoked, or malformed. The client usually sees a 400 unless the configuration maps 495 to a custom error page.

It is distinct from 496, which means no certificate was presented at all.

Common causes

How to fix it

As the client

As the server

Examples

A client certificate that fails verification

Log

(nginx access log)
495 "GET /secure/api HTTP/1.1" client certificate verify failed

See also