报错: javax.net.ssl.SSLHandshakeException: No appropriate protocol
HTTPS,微信退款,提现, SSL等
原因是JDK版本的问题
找到jdk安装目录下 jdk1.8.XXX > jre > lib > security > java.security
打开 java.security文件,原文如下:
# Example:
# jdk.tls.disabledAlgorithms=MD5, SSLv3, DSA, RSA keySize < 2048, \
# rsa_pkcs1_sha1
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
删除: SSLv3, TLSv1, TLSv1.1, 修改为:
# Example:
# jdk.tls.disabledAlgorithms=MD5, SSLv3, DSA, RSA keySize < 2048, \
# rsa_pkcs1_sha1
# 需要删除的: SSLv3, TLSv1, TLSv1.1,
jdk.tls.disabledAlgorithms=RC4, DES, MD5withRSA, \
DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
include jdk.disabled.namedCurves
记得保存;记得保存;记得保存; 最后 重启项目! 重启项目! 重启项目!
在此特别鸣谢: https://www.jianshu.com/p/4273388ec24a
|