The JVM running your client process needs to import the server's certificate in its truststore
(using keytool) if the server's certificate is self-signed.
 
(You can use IE to extract the server's certificate and feed it to keytool.)
 
Also, I think the hostname in URL you're connecting to has to match the hostname contained
in the server certificate, i.e. avoid DNS aliases, etc. when establishing the client connection.
 
(You can use IE to inspect the certificate's attributes, see what the hostname is, etc.).
 
- LCF.


From: Greg Hess [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 3:09 PM
To: [EMAIL PROTECTED]
Subject: Testing SOAP over SSL

Hi All,

 

I am trying to set up my Web Service to be accessed over SSL.

 

My web server Resin 2.1.2 has SSL enabled and is working fine with a test certificate. For testing, my Server and Client are on the same web server, for some reason when I alter the service address for my client stub to use https a SSLHandshakeException is thrown because it could not find a trusted certificate. I know generally you have the client cert imported into the server keystore and the server cert imported into the client keystore.

 

1)       How do you test with both client and sever in the same container using SSL?

 

2)   Do you only have to provide the new https service address to the stub to use SSL?

 

 

Many thanks,

 

Greg Hess

Software Engineer

Wrapped Apps Corporation

275 Michael Cowpland Dr.

Suite 201

Ottawa, Ontario

K2M 2G2

Tel: (613) 591 -7552

Fax: (613) 591-0523

1 (877) 388-6742

www.wrappedapps.com

 

<<attachment: image001.gif>>

Reply via email to