Forum Discussion
am_gli_287451
Nimbostratus
Feb 28, 2018Writing Client-Cert info into Header - irule with strange behavior
Hi,
I have an inherited a BIG-IP and I'm facing a problem with an irule that is implemented there.
The important part is this:
when HTTP_REQUEST priority 200 {
...
create HTTP head...
Anesh
Cirrostratus
Feb 28, 2018Try the below code:
set parts [ split $dn {,} ]
set country [lindex $parts 0]
set x [string range $country 2 end]
HTTP::header insert "SSL_CLIENT_I_DN_C" $x
set org [lindex $parts 1]
set y [string range $org 2 end]
HTTP::header insert "SSL_CLIENT_I_DN_O" $y
set unit [lindex $parts 2]
set z [string range $unit 3 end]
HTTP::header insert "SSL_CLIENT_I_DN_OU" $z
set cname [lindex $parts 3]
set a [string range $cname 3 end]
HTTP::header insert "SSL_CLIENT_I_DN_CN" $a
HTTP::header insert "SSL_CLIENT_I_DN" $dn
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