Hi,
I am trying to extract the sha1 hash of the client certificate and to pass it
to the backend server. My configuration has this line:
http-request set-header X-SSL-Client-SHA1 %{+Q}[ssl_c_sha1]
However, this does not seem to produce a string of the form "aabbcc..." as the
examples I've seen on the web. Instead, it appears to write the raw sha1 hash
bytes. The downstream server, node.js, appears to treat these value as utf8
strings.
This is the version I am running:
./haproxy --version
HA-Proxy version 1.5-dev25-a339395 2014/05/10
Copyright 2000-2014 Willy Tarreau <[email protected]>
What am I doing wrong? Ideally I would like to get the sha1 hash as a hex
string.
Thanks,
-aydan