Hi Oliver,
I normally invoke a Web service over a SSL secured Tomcat installation.
The code I use is straightforward, I only change the endpoint url to targer the SSL port.
Of course I specify the keystore location using standard VM arguments.
-Djavax.net.debug=ssl
-Djavax.net.ssl.keyStore=D:/projects/.../.../client.ks
-Djavax.net.ssl.keyStorePassword=password
-Djavax.net.ssl.trustStore=D:/projects/.../.../client.ks
Luciano
-----Original Message-----
From: Oliver Wulff [mailto:[EMAIL PROTECTED]]
Sent: Tuesday 09 March 2004 19:37
To: [EMAIL PROTECTED]
Subject: SSL support in Axis
Hi all
Currently, my Axis client invokes a secure webservice by setting the
according system properties like:
javax.net.ssl.trustStore
javax.net.ssl.trustStorePassword
I'm wondering whether it is supported to initialize the
javax.net.ssl.TrustManager and javax.net.ssl.KeyManager and set the
SSLContext:
SSLContext sslcontext = SSLContext.getInstance("SSL");
sslcontext.init(km, tm, securerandom );
And somehow, I have to set the SocketFactory
HttpsURLConnection huc = ....
huc.setSSLSocketFactory(sslcontext.getSocketFactory());
How can I achieve this?
Thank you for your help!
Regards
Oliver
******************* BITTE BEACHTEN *******************
Diese Nachricht (wie auch allf�llige Anh�nge dazu) beinhaltet
m�glicherweise vertrauliche oder gesetzlich gesch�tzte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrt�mlicherweise erreicht hat, sind Sie h�flich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerst�ren und die absendende Person
umgehend zu benachrichtigen. Vielen Dank f�r Ihre Hilfe.
Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall neither be binding nor construed as constituting a commitment by the ECB except where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised disclosure, use or dissemination, either in whole or in part, is prohibited.
If you have received this e-mail in error, please notify the sender immediately via e-mail and delete this e-mail from your system.
