HTTP variables

$ssl_client_v_remain variable (HTTP TLS)

Days remaining before client certificate expiration. Do not use a rounded day count as the sole validity check. Version: 1.11.7. 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_v_remain

Working Example

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