Forum Discussion
Jason_Drake_204
Jul 07, 2015Nimbostratus
Forwarding of X509 HTTP Header to application after termination of SSL
Hi, I'm fairly new to F5 and was wondering if there was a way to insert part of the x509::subject to the HTTP header.
A regular iRule for this would look partly like this
when HTTP_REQUEST {
i...
Kevin_Stewart
Jul 07, 2015Employee
You can use a combination of string operations to get to this value. Try this:
set subj [findstr [X509::subject [SSL::cert 0]] "CN=" 3 ","]
set EDIPI [string range $subj [expr [string last "." $subj] +1] end]
The finsdtr command will return everything after "CN=" and before the next comma:
John.D.Smith.9999999999
And the string functions will return the value after the last period to the end of the string.
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