TLS cipher hexadecimal logging

petecooper nginx-forum at
Mon Oct 4 11:22:02 UTC 2021


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?

Thank you, and best wishes.

Posted at Nginx Forum:,292525,292525#msg-292525

More information about the nginx mailing list