HTTP variables

$ssl_client_s_dn variable (HTTP TLS)

Subject distinguished name formatted according to RFC 2253. Treat this as certificate metadata, not proof of identity without successful verification and application policy. Version: 1.11.6. Requires HTTP SSL module and appropriate TLS library. No positional arguments. The example is an http-context map; use only in a disposable TLS lab. A map classification is not authorization.

Formal Syntax & Structure

nginx syntaxnginx
$ssl_client_s_dn

Working Example

Example Snippetnginx
# Partial http-context example: classify synthetic TLS metadata without emitting raw values.map $ssl_client_s_dn $lab_tls_client_s_dn {    "" 0;    default 1;}
Nginx Reference