tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: HTTPS and java client call
Date Fri, 24 Oct 2003 03:32:04 GMT
Try adding:
   -Djavax.net.ssl.trustStore=/path/to/servercert.ks \
   -Djavax.net.ssl.trustStorePassword=<your-ks-password-here>
to the command line of your client app.


"Bruno Morin" <bruno.morin@atosorigin.com> wrote in message
news:066f01c39942$bcbc1580$34040237@US.ORACLE.COM...
> Hi,
>
> I configured Tomcat to work in HTTPs mode with a self-signed certificate.
> and I installed a Soap webService on it.
>
> Is it possible to develop a java client for a webService thru Https,
without
> create and use a client keystore generated from the server certificate ?
>
>
> Before the call of the webService I add those instructions :
>     System.setProperty("java.protocol.handler.pkgs",
> "com.sun.net.ssl.internal.www.protocol");
>
>     Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
>
> and when I execute the call, I have the exception
>     javax.net.ssl.SSLHandshakeException: unknown certificate
>
>
>
> Did I forgot an instruction ?
>
> Is it possible to develop a java client for a webService thru Https,
without
> create and use a client keystore generate from the server certificate ?
>
> How can i do that ?
>
> Thanxs




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message