I’m trying to setup a selective SSL client authentication for certain HTTP URIs using custom SSL profiles. The reason for custom profiles is because I couldn’t find a way to specify a custom ca-bundle for trusted CAs, instead of using F5 default CA bundle.
when HTTP_REQUEST { if { [HTTP::uri] starts_with “/pki” } { SSL:profile test-pki.client-ssl } else { SSL::profile test.client-ssl } }
But it seems that SSL:: profile can only be used during CLIENT_ACCEPTED event and which doesn’t support [HTTP::uri]. I also tried disabling SSL client auth but it’s still prompting for client certificates.
when HTTP_REQUEST { if { [HTTP::uri] starts_with “/pki” } { HTTP::collect SSL::authenticate always SSL::authenticate depth 9 SSL::cert mode request SSL::renegotiate
}else { SSL::cert mode ignore } }
So how can I enable selective SSL auth and still use custom CA ca-bundle key store?