You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Darren Marvin <dj...@it-innovation.soton.ac.uk> on 2002/11/20 20:32:44 UTC

Axis seems to ignore JSSE System Properties

Hi all,

I am using Axis web services over HTTPS with both client and server certificate authentication. Everything is fine as long as I use only the default keystore location $HOME/.keystore and default password 'changeit'. I would like to specify alternative values for these variables. You can do this for JSSE by setting the following System Properties:

javax.net.ssl.KeyStore and javax.net.ssl.KeyStorePassword

Unfortunately if I do set these then Axis seems to ignore them when it makes its invocation. I have looked at the Axis source code and discovered that JSSESocketFactory is the class that sets up the HTTPS socket connection. It has some default values for the keystore etc but also allows overiding them with values from the handler options. Unfortunately I don't think this class reads the the ssl system properties. I don't want to have to change the Axis source if I can help it.

Any help / pointers to better solutions would be appreciated 

Thanks,

Darren.