Forum Discussion
Jeff_Steenberge
Nimbostratus
Apr 11, 2006Understanding hor to write iRules - Switch SSL certs based on subdomain?
I have a profile socks.store.com and it is setup for a Virtual server (Store_443) that uses that profile. I would like to take that setting out and control which cert they get with iRules. The below is my first thought on how to do this. I'm new to iRules and don't have a very good understanding of how to make this work:
when CLIENT_ACCEPTED {
set host [string tolower [HTTP::host]]
if { ($host contains "socks.") } {
SSL::profile socks.store.com
}
else { ($host contains "shoes.") } {
SSL::profile shoes.store.com
}
}
when HTTP_REQUEST {
SSL::renegotiate
}
- hoolio
Cirrostratus
Hi Jeff,
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