Forum Discussion
IvanKusturic
Nimbostratus
Oct 15, 2020iRules for SSL certificates
Hi everybody, We have a client who is hosting three FQDN's on same web server. In order to deliver correct SSL certificates based on the server name, we have configured SNI, with three different ...
Simon_Blakely
Employee
Nov 01, 2020You need to use SSL::renegotiate and something like
when CLIENTSSL_HANDSHAKE {
if { [SSL::cert count] > 0 } {
if { $http_collected eq 1 } {
HTTP::release
set http_collected 0
}
}
}
when HTTP_REQUEST {
if { ([HTTP::host] eq "siteB.com") && ([HTTP::uri] starts_with "/admin/") } {
if {[SSL::cert count] == 0} {
set http_collected 1
HTTP::collect
SSL::session invalidate
SSL::authenticate always
SSL::authenticate depth 9
SSL::cert mode require
SSL::renegotiate enable
SSL::renegotiate
}
}
}Note: this is a modified example from the SSL::renegotiate page, and has not been tested, so YMMV
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
