Error accessing a Web Service with SSL

后端 未结 7 932
借酒劲吻你
借酒劲吻你 2020-12-29 09:59

I have a program that is supposed to send a file to a web service, which requires an SSL connection. I run the program as follows:

SET JAVA_HOME=C:\\Program         


        
7条回答
  •  再見小時候
    2020-12-29 10:52

    Try adding these two lines somewhere in your setup code:

    Security.setProperty("ssl.SocketFactory.provider", "com.ibm.jsse2.SSLSocketFactoryImpl");
    Security.setProperty("ssl.ServerSocketFactory.provider", "com.ibm.jsse2.SSLServerSocketFactoryImpl");
    

提交回复
热议问题