JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

Received fatal alert: protocol_version

发布时间 2023-11-03 16:51:17作者: 潜水的阳光

 

问题原因
程序使用用的TLS与jdk环境TLS不一致

分析定位
配置文件设置jvm启动参数 -Djavax.net.debug=all,将http请求报文打印。
JAVA_OPTS=‘-Djavax.net.debug=all’

 

请求时检查日志输出,程序使用TLS版本为TLSv1
而jdk8中默认启用TLSv1.2,版本不一致。

 


解决方案
调整jvm参数,将jdk TLS版本设置为TLSv1
修改代码,调整TLS版本或采用兼容的HttpUtils工具类

转载地址:https://blog.csdn.net/qq_44624722/article/details/114278962

    本栏目推荐文章
  • 多项式定积分计算软件2025 64位WIN版下载Polynomial definite integral calculation software 2025 64 bit WIN version download
  • P9007 [入门赛 #9] 最澄澈的空与海 (Hard Version) 题解
  • git bash报错fatal: detected dubious ownership in repository at的解决方法
  • android编译kanzi 问题 (2) Gradle sync failed: NDK not configured. Download it with SDK manager. Preferred NDK version is '21.1.6352462'.
  • No appropriate protocol (protocol is disabled or cipher suites are inappropriate)衫德钱包http请求时候
  • CodeForces 1919F2 Wine Factory (Hard Version)
  • 7 Dances (Easy version)
  • python 解决Fatal error in launcher:错误问题
  • Vue ui 创建项目报错: ERROR Failed to get response from https://registry.npmjs.org/vue-cli-version-marker
  • virtualbox安装centOS7 报错 not syncing fatal exception
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们