Forum Discussion
adharkrader
Nimbostratus
Apr 01, 2017Can I reply with an SSL alert when validating client certificate?
I have an iRule that validates client certs against a data group. Currently, if they don't match, I send a Reject (TCP RST). Problem is that the calling browsers retry... I've seen up to 9 retries....
Jeremy_Church_3
Cirrus
Apr 06, 2017Hello,
The command
not only shows the result of the client certificate verification, but can also be used to change the result.SSL::verify_result
when CLIENTSSL_CLIENTCERT {
if {[SSL::cert count] > 0} {
if {[SSL::verify_result] == 0} {
at this point, the client was already determined to be valid.
if {"your check is false"} {
certificate does not match, respond like we don't trust them
SSL::verify_result 20
}
}
}
}
I recommend using the command in the
CLIENTSSL_CLIENTCERT
event. This should result in an actual SSL alert response.
The
page provides several possible error responses.SSL::verify_result
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