Error accessing a Web Service with SSL

后端 未结 7 927
借酒劲吻你
借酒劲吻你 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:51

    Found this topic while searching for the same error message but found a different solution. To test a https REST service using the Apache Wink client:

    ClientConfig config = new ClientConfig();
    config.setBypassHostnameVerification(true);
    RestClient client = new RestClient(config);
    

    And set the Factory's empty:

    Security.setProperty("ssl.SocketFactory.provider", "");
    Security.setProperty("ssl.ServerSocketFactory.provider", "");
    

    My runtime is a standalone Camel test using IBM JRE 1.7 from IBM WebSphere v8.5.5.

提交回复
热议问题