Forum Discussion
Sake_Blok
Nimbostratus
May 10, 2007Providing an http-response after killing a serverside SSL connection
Hi,
I'm building an iRule on a vip with serverside-ssl. The iRule must validate the common name in the server-certificate dynamically against the Host: header in the http-request. If the cn doe no...
Deb_Allen_18
May 11, 2007Historic F5 Account
Hi Sake --
You might try using "LB::detach" to close the server side of the connection without affecting the client side:
when HTTP_REQUEST {
set hostname [HTTP::host]
}
when SERVERSSL_HANDSHAKE {
set sslcert [SSL::cert 0]
set cn [findstr [X509::subject $sslcert] "CN=" 3]
if { $cn ne $hostname } {
LB::detach
log local0. "Server-side connection closed: $cn != $hostname"
HTTP::respond 200 content "blah"
}
}HTH/deb
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
