HTTP variables

$ssl_client_s_dn_legacy variable (HTTP TLS)

Earlier subject DN formatting. Do not compare legacy and current string forms as if they were guaranteed identical. Version: 1.11.6 (legacy name). Requires HTTP SSL module and appropriate TLS library. Before 1.11.6 the legacy representation used ssl_client_s_dn. 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_legacy

Working Example

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