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...
unRuleY_95363
Apr 06, 2005Historic F5 Account
You may want to try adding this:
when HTTP_REQUEST {
if { [info exists cert] } {
... your existing rule stuff...
} else {
log "No Cert presented"
reject
}
}
Basically, you have to remember there is no guarantee the client presented a certificate before sending an HTTP request.
The "info exists" command is Tcl's way of determining whether a variable has been previously set.
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