Intellij IDEA - Webservices client from WSDL with certificates

I am somewhat new to SSL / TLS and Java trust / keystores. I am trying to create a client to use a web service from a WSDL file hosted in IIS. This worked fine before the service was configured to receive certificates. Now I get a Wsdl url connection exception .

In an attempt to get around this, I saved a local copy of WSDL via IE (with the corresponding certificates in place using the MMC Certificates snap-in). Then I tried to point IDEA to this place ( file:/C:/projects/wsdl/wsdlname.wsdl ).

This occurs with the following error messages:

 parsing WSDL... [ERROR] sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target unknown location [ERROR] invalid entity name: "Auth" (in namespace: "******") line 0 of unknown location 

Note. I have allocated a namespace.

  • Is there a way to configure IntelliJ IDEA to be able to present a valid certificate if I want to use the generation / wizard utility?
  • Is there a potential web service issue that causes even local WSDL import to fail?

Thanks in advance.

+4
source share
1 answer

This should help if you install the certificate in the JVM, which is used to run IDEA using keytool .

+4
source

All Articles