There is definately some problem that relates to the tomcat configuration. When I ran it outside tomcat
it works just fine. I tried adding the server certificates to the keystore.

My solution was to write my own https transport that uses a custom SSLSocketFactory.

Thanks for your help,
-Sean

Scott Nichol wrote:

I have barely used SSL with Apache SOAP, but since no one else seems to
be chiming in, I'll throw in a couple of thoughts.

First, the SSL docs distributed with Apache SOAP are specifically form
Tomcat at
http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-soap/java/docs/install/
FAQ_Tomcat_SOAP_SSL.html?rev=HEAD&content-type=text/html.
Unfortunately, this is old and may be out of date in some important
places.

Second, since you are using SSL for SOAP client within Tomcat, it is not
totally clear whether you should care about the Tomcat or client
configuration. My best guess would be that you can ignore the Tomcat
SSL configuration and concentrate on the SOAP client configuration.

Third, the docs talk about importing a certificate, not a public key.
This is an area in which I have no detailed understanding, but it is
certainly a difference between your description and the docs, and your
stack dump specifically says the certificate is not found. When I boil
down the docs, it seems to me like you want to import the certificate
into a keystore, then be certain that the keystore in question is the
one used by your code (by setting the system property
javax.net.ssl.trustStore). With that accomplished, I would not expect
you to get the error you are getting.

Good luck, and when you resolve this, it would be great if you could
post the resolution to this list so the next poor soul in your situation
can benefit from your pain.

Scott Nichol

----- Original Message -----
From: "Sean McCauliff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 31, 2002 6:41 PM
Subject: Using SOAP + HTTP as a client within tomcat.



I get the following error message:


SOAPException: faultCode=SOAP-ENV:Cl
ient; msg=Error opening socket: javax.net.ssl.SSLHandshakeException:
java.security.cert.
CertificateException: Couldn&amp;apos;t find trusted certificate;
targetException=java.l
ang.IllegalArgumentException: Error opening socket:
javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: Couldn&apos;t find trusted
certificate

I have added the server's public key to /root/.keystore and to
tomcat/conf/keystore and this still happens. Any ideas?

Thanks,
Sean




--
To unsubscribe, e-mail:

<mailto:[EMAIL PROTECTED]>

For additional commands, e-mail:

<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
Sean



--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to