From: Willy Tarreau Date: Wed, 2 Jul 2014 17:01:22 +0000 (+0200) Subject: DOC: provide an example of how to use ssl_c_sha1 X-Git-Tag: v1.6-dev1~381 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d0caa38e040b081903e50faa56bae52599b3949;p=thirdparty%2Fhaproxy.git DOC: provide an example of how to use ssl_c_sha1 As suggested by Aydan Yumerefendi, a little bit of examples never hurts. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index fc16843553..aa55eb4d63 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -10793,6 +10793,10 @@ ssl_c_sha1 : binary Returns the SHA-1 fingerprint of the certificate presented by the client when the incoming connection was made over an SSL/TLS transport layer. This can be used to stick a client to a server, or to pass this information to a server. + Note that the output is binary, so if you want to pass that signature to the + server, you need to encode it in hex or base64, such as in the example below: + + http-request set-header X-SSL-Client-SHA1 %[ssl_c_sha1,hex] ssl_c_sig_alg : string Returns the name of the algorithm used to sign the certificate presented by