TLS 1.2 was supported in Java 8 but not in Java 7

后端 未结 3 392
抹茶落季
抹茶落季 2020-12-19 18:35

When I tried to connect a URL (one of vendors URL which supports TLS 1.2 and worked fine previously with Java 7) by using Java 7, I found bellow Exception:

j         


        
相关标签:
3条回答
  • 2020-12-19 18:49

    If you test the URL with SSLLabs, the website allow 4 ciphers :

    TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384

    But if you read ciphers list for Java 7, no cipher is not supported (can be seen in the debug message also). Even by enabling TLS 1.2 for Java 7, I think it doesn't find any valid ciphers. The site had to change its configuration.

    0 讨论(0)
  • 2020-12-19 18:52

    Without upgrading to Java 8, you can upgrade your Java 7 version to 1.7.0_131-b31

    For JRE 1.7.0_131-b31 in Oracle site :

    TLSv1.2 and TLSv1.1 are now enabled by default on the TLS client end-points. This is similar behavior to what already happens in JDK 8 releases.
    
    0 讨论(0)
  • 2020-12-19 18:59

    I also faced the similar kind of problem while starting our swing based application. It seems that in some version of java 7, TLS1.2 is not enabled by default. I enabled it and then it worked fine.

    You may enable it from Java Control Panel -> Advanced -> Click 'Use TLS 1.2'

    Hopefully, it should work in your case also.

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