For the problem “java security cert certpathvalidatorexception certificate chaining error.” I tried to fix it, but It doesn’t work and returns the result I want. Here is my program: Security.setProperty("ssl.SocketFactory.provider", "com.ibm.jsse2.SSLSocketFactoryImpl"); Security.setProperty("ssl.ServerSocketFactory.provider", "com.ibm.jsse2.SSLServerSocketFactoryImpl"); Security.setProperty("javax.net.ssl.trustStore", ...