错误信息如下:

[SymtabTool-E] javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

at sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:171)

at sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:101)

at sun.security.ssl.TransportContext.kickstart(TransportContext.java:238)

at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:394)

at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:373)

at com.tencent.bugly.symtabtool.proguard.fe.a(Bugly:394)

at com.tencent.bugly.symtabtool.proguard.fe.a(Bugly:353)

at com.tencent.bugly.symtabtool.proguard.el.a(Bugly:1134)

at com.tencent.bugly.symtabtool.proguard.jb.a(Bugly:353)

at com.tencent.bugly.symtabtool.proguard.kt.a(Bugly:380)

at com.tencent.bugly.symtabtool.proguard.kt.a(Bugly:236)

at com.tencent.bugly.symtabtool.proguard.ku.a(Bugly:184)

at com.tencent.bugly.symtabtool.proguard.kz.a(Bugly:88)

at com.tencent.bugly.symtabtool.proguard.kv.a(Bugly:110)

at com.tencent.bugly.symtabtool.proguard.ij.a(Bugly:184)

at com.tencent.bugly.symtabtool.proguard.id.a(Bugly:82)


解决方法:

java 8:

进入jdk安装目录的jre/lib/security目录下:

vi java.security
# 找到如下内容:
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

# 修改为:
jdk.tls.disabledAlgorithms=SSLv3, RC4, DES, MD5withRSA, \
    DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
    include jdk.disabled.namedCurves


java 11:

进入jdk安装目录的conf/security/目录下:


vi java.security

# 找到如下内容:
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

# 修改为:
jdk.tls.disabledAlgorithms=SSLv3, RC4, DES, MD5withRSA, \
    DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
    include jdk.disabled.namedCurves