admin管理员组文章数量:1569832
在Java8及高版本以上的版本在调用ssl时会出现javax.ssl.SSLHandshakeException: No appropriate protocol
的异常。
I/O error on GET request for "https://..........":
No appropriate protocol (protocol is disabled or cipher suites are inappropriate);
nested exception is javax.ssl.SSLHandshakeException:
No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
解决办法如下: jdk安全策略禁止了
修改jre/lib/security/java.security
中的disabledAlgorithms
,删除SSLv3, TLSv1, TLSv1.1
,然后重启应用即可。在vim下,可以使用jdk.tls.disabledAlgorithms
快速查找。
# SSLv3, TLSv1, TLSv1.1,
jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1,RC4, DES, MD5withRSA, \
DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
include jdk.disabled.namedCurves
把SSL,TSL那些删掉就可以了
参考:Java调用ssl出现异常:javax.ssl.SSLHandshakeException: No appropriate protocol_程序员星空的博客-CSDN博客_javax.ssl.sslexception
本文标签: NETjavaxIOExceptionprotocolSSLHandshakeException
版权声明:本文标题:IOException:javax.net.ssl.SSLHandshakeException: No appropriate protocol 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1726296259a1064645.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论