Forum Discussion
adiezma
Feb 28, 2023Nimbostratus
The 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