Forum Discussion
TIm_Maestas
Nimbostratus
Apr 06, 2005SSL cert verify TCL error?
I have the following iRule:
when CLIENTSSL_HANDSHAKE {
set cert [SSL::cert 0 ]
}
when HTTP_REQUEST {
set stuff [X509::subject $cert ]
if { [matchclas...
bl0ndie_127134
Apr 06, 2005Historic F5 Account
How about something like this ...
when HTTP_REQUEST {
if {[SSL::cert count] == 0} {
reject
} else {
set subject [X509::subject [SSL::cert 0 ]]
if { [matchclass $subject contains $::merlin] } {
use pool test-sun
}
}
}
Alternatively you could modify your CLIENTSSL_HANDSHAKE to look like this ...
when CLIENTSSL_HANDSHAKE {
if {[SSL::cert count] > 0} {
set cert [SSL::cert 0 ]
}
}
I am still a little baffled as to why "info exists" failed. I will do some testing tomorrow to try and find out why.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