Forum Discussion
rcurr9999tcf_35
Jul 26, 2018Nimbostratus
iRule to validate that the client certificate is allowed via CN
Hi All,
I am trying to write an iRule to check the client certificate and if the cert does not contain the two CN entries below client certificate authentication is rejected and logged. Is my synt...
rob_carr
Jul 26, 2018Cirrostratus
when CLIENTSSL_CLIENTCERT {
if {[SSL::cert count] > 0} {
set cert [SSL::cert 0]
set subject [string tolower [X509::subject $cert]]
if { not ($subject contains "cn=integration-prod_sfdc-client") } {
reject
log local0. "cert CN not valid"
}
}
}
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