Tomcat 7 getting SSLv2Hello is disabled error when trying to make client server ssl authntication

后端 未结 1 1656
刺人心
刺人心 2020-12-15 12:21

I have tried to setup a self-signed TLS configuration for both client and server where the server is Tomcat 7 and the client is Apache httpclient 4.1. The server configurati

相关标签:
1条回答
  • 2020-12-15 13:18

    You should probably not do this (please, just let SSL die!), but you can enable the SSLv2Hello protocol for clients using this shockingly obvious technique:

    -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2,SSLv2Hello
    

    As for the server, Tomcat configures its own SSL endpoint(s) using the sslProtocol and sslEnabledProtocols configuration settings. you should use those on the server side. For example:

    <Connector
     sslProtocol="TLS"
     sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2,SSLv2Hello"
     ...
     />
    

    You can find out more information about how to diagnose SSL/TLS issues on Oracle's blog about the subject.

    0 讨论(0)
提交回复
热议问题