I am new in JAVA, Consuming web service(.wsdl) in Web Service Client project. I import the client certificate in java cacerts store in jrd. My code is as follows:
System.setProperty("javax.net.ssl.trustStore","[PATH]/cacerts.jks"); System.setProperty("javax.net.ssl.trustStorePassword","changeit"); ServicesProxy service = new ServicesProxy(); ServiceRequest request = new ServiceRequest(1498); ServiceResponse response = service.getDetails(request); I'm failed to handshake, I am getting the following exception:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target I have no clue why there is an exception. Any help will be appreciated.
cxf.xmlfile - more details herecacerts.jksand not justcacerts?