https://blog.csdn.net/milogenius/article/details/80247079

https://my.oschina.net/u/1164681/blog/863363

https://stackoverflow.com/questions/12961570/sslpeerunverifiedexception-peer-not-authenticated

https://blogs.oracle.com/java-platform-group/self-signed-certificates-for-a-known-community

https://www.cnblogs.com/fengaix6/p/8947025.html

项目使用JDK1.6真的很多崩溃的事情。

静待明年升级JDK1.8

JDK1.6解决方案一(无奈本地亲测无效T_____T)

https://blog.csdn.net/nk_tf/article/details/52175689

查看本SSL证书公钥长度:2048

可能问题根源之一:jdk1.6只支持1024字节的DH,我发现我证书的公钥是2048字节的,所以报错了,jdk1.7以上支持,所以成功。

SSL连接确认jdk1.8编译可以连接,但jdk1.6编译后无法连接

解决方法参考:
https://stackoverflow.com/questions/6851461/why-does-ssl-handshake-give-could-not-generate-dh-keypair-exception

The "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files" answer did not work for me but The BouncyCastle's JCE provider suggestion did.

Here are the steps I took using Java 1.6.0_65-b14-462 on Mac OSC 10.7.5

1) Download these jars:

bcprov-jdk15on-154.jar

2) move these jars to $JAVA_HOME/lib/ext

3) edit $JAVA_HOME/lib/security/java.security as follows: security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider

方法二(终极解决问题 ^______^):

问题根域:需要手动加证书

https://blog.csdn.net/qq_17348297/article/details/80859141

然后./gradlew idea终于成功了哇哇哇!!!