try via java system properties System.setProperty("javax.net.ssl.keyStoreType", "pkcs12"); System.setProperty("javax.net.ssl.keyStore", "PRIVATEKEY.p12"); System.setProperty("javax.net.ssl.keyStorePassword", "PASSWORD");
or via java opts -Djavax.net.ssl.trustStore=trusted-ca-certs.jks -Djavax.net.ssl.trustStorePassword=keystore-password -Djavax.net.ssl.keyStoreType=pkcs12 -Djavax.net.ssl.keyStore=private-key.p12 -Djavax.net.ssl.keyStorePassword=password Alex Jonathan Bricker schrieb:
Is there a setting to point WSDL2Java to a cert store for a WSDL that is on a HTTPS connection? WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition from : file:/D:/JavaWS/JavaTrust1/src/java/trust.wsdl Caused by : WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): faultCode=PARSER_ERROR: Problem parsing ' https://ice-w2k8poc1.rfp.icepoc.com/adfs/services/trust/mex?xsd=xsd1'.: 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