Forum Discussion
CREDCO_17916
Nimbostratus
Apr 07, 2008HTTPS URI re-direct and client certs
Hi,
I'm trying to create an iRule that parses a URI and sends the request to 1 of 2 pools based on the URI. Very straight forward. The first URI listed below requires a Client Cert. The second one does not.
1. /cc/listener - Send to pool 1 ** Requires Client Cert
2. /cc/secondaryuse - Send to pool 2
Here is the iRule I'm using:
when HTTP_REQUEST {
if { [HTTP::uri] contains "secondaryuse"} {
pool CCJAVABETA_EM_TEST
} else {
pool CCJAVABETA_TEST
}
}
Without client certs enabled the iRule works as expected. As soon as I enforce Client Certs in IIS for URI 1 , I start getting 404's when I hit URI 1. I do not get a 403.7 "The Page Requires a Client Certificate" error page that I would expect to see.
Here are some options I have enabled on the Virtual Server:
- Http profile - "http" (the default http profile)
- SSL Profile (client) - "clientssl"
- SSL Profile (server) - "serverssl"
Do I need to use a separate iRule to handle the Client Certs? Is there a setting on the BigIP that I'm missing? This seems like a very simple and common configuration, so I'm sure I'm forgetting something stupid. Any help would be appreciated.
Thanks
- hoolio
Cirrostratus
Hello, - CREDCO_17916
Nimbostratus
Thanks for the info. Since only one of my URI's requires a CC, it seems like I'll need to: - CREDCO_17916
Nimbostratus
Hi, - spark_86682Historic F5 AccountI realize that it's not intuitive, but the most common cause of the "Prerequisite operation not in progress" error from the session or persist commands is not having a default pool assigned to the VIP that this iRule is assigned to. Do you have a default pool assigned? If not, try adding it.
- CREDCO_17916
Nimbostratus
Thanks for the info. - spark_86682Historic F5 AccountSorry for not getting back sooner.
- hoolio
Cirrostratus
I was suggesting that you can configure a server ssl profile to present a single client cert (one that you import into the BIG-IP configuration--not the one that the client for the specific client request presented). Ideally, the app could be changed to not require a client cert, but instead parse the client cert that the BIG-IP inserts in the HTTP header.
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