526 Invalid SSL Certificate

The origin presented a TLS certificate that could not be validated.

Status

HTTP/1.1 526 Invalid SSL Certificate

Details

526 appears with Full (strict) SSL mode, where the origin certificate must be valid and trusted. A self-signed, expired, or hostname-mismatched certificate produces 526 even though the handshake itself could technically proceed.

The difference from 525 is that the handshake failed outright there, while here it is validation that failed.

Common causes

How to fix it

As the client

As the server

Examples

GET / HTTP/1.1
Host: www.example.com

HTTP/1.1 526
Server: cloudflare

See also