Forum Discussion
Ted_51200
Nimbostratus
Mar 28, 2008Pull info from SSL Client Cert
I need an irule to pass on Client Cert information from a HTTPS request to the backend pool
Attributes I'd like sent along in HTTPS headers: Certificate status - The status of the c...
Nicolas_Menant
Employee
Mar 28, 2008Hi,
To do so you'll need the BIGIP to be the SSL termination of the the HTTPS flow.
Then you can use those commands to do the kjob :
Certificate serial number: Click here
Certificate issuer: Click here
Certificate subject: Click here
An example of certificate manipulation can be found here: Click here
to insert HTTP header it is simple: Click here
Here is an example of code to work from:
when HTTP_REQUEST
{
set pkiSubject [X509::subject $the_cert]
set pkiIssuer [X509::issuer $the_cert]
HTTP::header insert CN $pkiSubject
HTTP::header insert SSLIssuer $pkiIssuer
HTTP::header insert SSLClientCertSN [regsub -all {:} [X509::serial_number $the_cert] -]
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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