Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4756

Get value from nested header

$
0
0

Hi

I have a header coming from downstream that looks something like this:
“subjectdn: serialNumber=randomnumbers, ST=someStateOrProvinceName, L=someLocality, C=someCountryName, O=someOrganizationName, OU=someOrganizationalUnit, CN=someCommonName” - so basically some fields from the client TLS certificate. TLS is terminated downstream.

How can I extract the value of sertialNumber? I can get the whole subjectdn with capture.req.hdr(subjectdn) but using it later will just give me the last CN=someCommonName value.

Is it even possible without LUA?

Thanks in advance!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>