Forum Discussion
iRule to return message when SSL handshake fail
Hi,
I need an iRule to return a message to the end-user after rejection (handshake will fail). I already put an SSL profile to use only TLSv1.2
Thnx
- A_Alkhuja_16976
Nimbostratus
the log message when the user gets a reject:
Connection error: ssl_hs_rxhello:8519: unsupported version (70)
- Simon_Blakely
Employee
How can you return a message to the client when the transport protocol negotiation has failed?
You need to accept the TLS connection, and then reply to the HTTP_REQUEST with your required response based on the
SSL::cipher version
command.
when HTTP_REQUEST { log local0. "Cipher version is [SSL::cipher version]" if {!([SSL::cipher version] eq "TLSv1.2")} { HTTP::respond 500 content "You need to upgrade your client to support TLSv1.2" TCP::close } }
However - this will be detected by external scanners (like SSLLabs) as supporting and allowing versions of SSL/TLS below TLSv1.2, and your site rating will probably be an F.
Recent Discussions
Related Content
* 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