您的位置:首页 > 其它

服务器和客户端TSL协议不一致

2018-01-10 16:20 246 查看
问题:

javax.net.ssl.SSLHandshakeException: Server chose TLSv1, but that protocol version is not enabled or not supported by the client.

connection reset

server使用TLSv1.2 client使用TLSv1

解决方法:

升级jdk至1.8,支持TLSv1.2,并向下兼容

修改代码设置 System.setProperty("https.protocols", "TLSv1.2,TLSv1.1,TLSv1,SSLv3")
修改JVM环境变量,由于https.protocols系统内默认为空 -Dhttps.protocols=TLSv1.2,TLSv1.1,TLSv1,SSLv3
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  TSL