Forum Discussion
bmarch_127138
Nov 29, 2005Historic F5 Account
Spaces for line breaks when inserting client cert into header
Question:
When using the following rule to insert a client certificate into the http header, it puts spaces where line breaks occur within the certificate.
Is it possible to preven...
dimka___104021
Nimbostratus
Nov 30, 2005Hi,
I use something like this:
when HTTP_REQUEST {
set client_cert [session lookup ssl [SSL::sessionid]]
HTTP::header insert SSLClientCert [ join [string trim [string map { "-----BEGIN CERTIFICATE-----" "" "-----END CERTIFICATE-----" ""} [X509::whole $client_cert] ]] "" ]
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects