Forum Discussion
Kai_Wilke
Mar 07, 2016MVP
Hi Ichnafi,
the command
[X509::whole [SSL::cert 0]]
outputs multi-line text. Multi-line value can't be insert into a header without applying some encodings (e.g. Base64, Hex, URL-Encoding) to it. So I would recommend to wrap the certificate into B64 before setting the header and then use Base64 decoding on the server side to retrive the certificate.
HTTP::header insert "X-CLIENT-CERT" [b64encode [X509::whole [SSL::cert 0]]]
Cheers, Kai