Forum Discussion
adiezma
Nimbostratus
Feb 27, 2023Verification of a certificate from a CA.
Hi All!, I need to migrate a virtual server from NGINX to F5 LTM and am not able to get it to work. It is a web that uses a certificate, which is validated with a CA that is already loaded from my ...
adiezma
Nimbostratus
Feb 28, 2023The reason to use the irule is because we need to return a result when the certificate is invalid (not signed by the particular CA) or there is no certificate.
if {[SSL::cert count] > 0}{
if { [SSL::verify_result] == 0 }{
return
} else {
set error_string "error=error_cert"
}
} else {
set error_string "error=no_cert"
}
if { $error_string ne "" } {
HTTP::respond 303 Location https://s********?$error_string
}
Regards
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
