-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andy Kriger wrote:
> I have web service running under Tomcat with SSL. In a browser I have
> verified that the wsdl file is only accessible through HTTPS. I use
> wsdl2java to generate my client-side classes. This worked find without
> SSL, now I get
> 
> 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
> 
> How do you run wsdl2java so that it can connect to a secure web service?
> I am giving it the correct url (https with the secure port) but
> somehow I need to tell wsdl2java where to find the certificate.
> 
> Are there any clear docs on how to do this? (I've done a lot of
> searching of mailing lists and forums without much luck at finding
> something specific to wsdl2java).

you probably just need to import your ssl certificate into the jdk
running the client.  the jdk usually uses the kestore at
<java_home>/jre/lib/security/cacerts ... then import your ssl cert in
with the java keytool program that comes with java.

nate


> 
> thx
> andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCpdYygj8ksIjnb2wRAjSUAJ4n7EGwxIfpu0qsf3lJwApNmbZNegCaA9v+
ZJnXnKvCDVY+B7monN7T64A=
=IIvk
-----END PGP SIGNATURE-----

Reply via email to