如何查找Java中使用的SSL / TLS版本 [英] How to find what SSL/TLS version is used in Java
问题描述
我有一个基于java的客户端(使用java 1.6.30),它打开了与Tomcat 7.0.26上部署的服务器的SSL连接。 Tomcat使用的是Java 6,在server.xml中我将连接器配置为使用 sslProtocol =TLS
。
I have a java based client (using java 1.6.30) that opens an SSL connection to my server deployed on Tomcat 7.0.26. Tomcat is using Java 6 and in the server.xml I configured the connector to use sslProtocol="TLS"
.
我想知道正在使用的SSL版本是什么?是TLS1.0吗? TLS1.1?还有什么?
I wonder what is the SSL version being used? Is it TLS1.0? TLS1.1? Something else?
推荐答案
获取 SSLSocket $的/api/javax/net/ssl/SSLSession.html\"rel =nofollow noreferrer> SSLSession
c $ c>在您的客户端上并使用其 getProtocol()
方法。
Oracle JRE / OpenJDK 6支持SSLv3和TLS 1.0 。您至少需要 IBM JRE 6/7 或 Oracle JRE / OpenJDK 7获得对TLS 1.1和TLS 1.2的支持。 (这也与可用的密码套件有关,如此问题中所述。)
Oracle JRE/OpenJDK 6 supports SSLv3 and TLS 1.0. You would need at least the IBM JRE 6/7 or Oracle JRE/OpenJDK 7 to get support for TLS 1.1 and TLS 1.2. (This is also related to the available cipher suites, as mentioned in this question.)
这篇关于如何查找Java中使用的SSL / TLS版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!