服务器和客户端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
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
相关文章推荐
- Atom远程连接服务器报错服务器版本和客户端版本不一致
- http协议从客户端提交数据给服务器并返回数据
- Windows下使用TCP协议变长交互客户端和服务器的数据传输
- 初探基于TCP的服务器/客户端结构的聊天系统(二)之应用层通信协议设计
- 实现客户端和服务器之间的通信(TCP协议、多线程)
- 网络编程(5)—— 基于Linux系统的UDP协议socket服务器和客户端
- 如何设置Oracle客户端与服务器的字符集一致
- herm::cached 客户端与服务器协议一致性校验方法
- MySQL的客户端、服务器的连接协议
- tcp协议服务器和客户端相互发送数据
- TortoisSVN 客户端软件 在 更新(update) 前 线查看 服务器与本地文件 的 不一致(diff) 后,再有选择的更新
- python3实现UDP协议的简单服务器和客户端
- 解决SVN UUID客户端和服务器不一致的问题
- 电骡协议规范(三):客户端和服务器之间的UDP通讯
- MySQL客户端/服务器通信协议
- 基于UDP协议下的客户端与服务器之间的通信
- UDP协议服务器、客户端使用实例Demo
- 开源的C#实现WebSocket协议客户端和服务器websocket-sharp组件解析
- 服务器与客户端之间通信格式以及协议字
- MySQL客户端与服务器协议