IBM JDK下访问SSL/HTTPS时候ClassNotFoundException解决方法

终极解决方法
更改 <IBM_JAVA_HOME>/jre/lib/security/java.security里的设置,改成

# Default JSSE socket factories
ssl.SocketFactory.provider=com.ibm.jsse2.SSLSocketFactoryImpl
ssl.ServerSocketFactory.provider=com.ibm.jsse2.SSLServerSocketFactoryImpl
# WebSphere socket factories (in cryptosf.jar)
#ssl.SocketFactory.provider=com.ibm.websphere.ssl.protocol.SSLSocketFactory
#ssl.ServerSocketFactory.provider=com.ibm.websphdere.ssl.protocol.SSLServerSocketFactory

应该换到任何地方都可以用了^_^。

你可能感兴趣的:(IBM JDK下访问SSL/HTTPS时候ClassNotFoundException解决方法)