javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure 解决方案

2021-08-20 21:52 阅读 50 次 javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure 解决方案已关闭评论

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure 解决方案

这个是jdk导致的,jdk里面有一个jce的包,安全性机制导致的访问https会报错,官网上有替代的jar包,换掉就好了

目录 %JAVA_HOME%\jre\lib\security里的local_policy.jar,US_export_policy.jar

JDK7 http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html

JDK8 http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html

 

示例:

替换C:\Program Files\Java\jre1.8.0_301\lib\security\policy\unlimited 下local_policy.jar,US_export_policy.jar两个文件

版权声明:本文著作权归原作者所有,欢迎分享,谢谢支持!
转载请保留注明:javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure 解决方案 | DXL学习
分类:Windows 标签:

评论已关闭!