TLS cipher hexadecimal logging

Sergey A. Osokin osa at
Mon Oct 4 15:17:25 UTC 2021


hope you're doing well these days.

On Mon, Oct 04, 2021 at 07:22:02AM -0400, petecooper wrote:
> Hello.
> Per the documentation:
> > $ssl_cipher
> > returns the name of the cipher used for an established SSL connection.
> This means `$ssl_cipher` returns e.g `TLS_CHACHA20_POLY1305_SHA256`.
> Is it possible to return the corresponding hex value e.g. `0x1303` instead?

I believe it's possible to use map in this case,

Sergey Osokin

More information about the nginx mailing list