Forum Discussion
Jim_24689
Nimbostratus
Oct 08, 2013Irule and accepting a Client Cert
Hello , I am trying to configure two way SSL on a V11 F5 LTM/ASM . I'd like to check the common name of the client cert present by the client.
when CLIENTSSL_CLIENTCERT {
log ...
uni
Altocumulus
Oct 08, 2013I think your client has not supplied a certificate. Check that [SSL::cert count] > 0 before executing [X509::subject [SSL::cert 0]]
- Kevin_StewartOct 08, 2013
Employee
I don't believe the CLIENTSSL_CLIENTCERT event will be triggered if the client isn't presenting a certificate. - uniOct 08, 2013
Altocumulus
Good point. I wonder why there is a TCL error then - uniOct 08, 2013
Altocumulus
The event is triggered. I have a rule which logs the cert count in that event, and it logs 0 regularly. Jim should look at the example in the Wiki: https://clouddocs.f5.com/api/irules/X509__subject.html It does almost exactly what he wants. He will need to pick out the CN from the subject. e.g change the test to if { [X509::subject [SSL::cert 0]] contains "CN=my.common.name" } - uniOct 08, 2013
Altocumulus
Further to the point about when the CLIENTSSL_CLIENTCERT event is triggered, the Wiki says "Triggered when the system receives a certificate message from the client. The message may contain zero or more certificates"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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