HTTP variables

$ssl_cipher variable (HTTP TLS)

The cipher suite actually selected for the connection. Compare with ssl_ciphers before attributing a negotiation failure to client support. Version: Introduction not established. 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_cipher

Working Example

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