Topic
1 reply Latest Post - ‏2013-09-04T09:51:09Z by U4UE_xie_zhi
devWasce
devWasce
1 Post
ACCEPTED ANSWER

Pinned topic Setting up JVM run time properties for truststore in WASCE environment for Axis2 client

‏2013-05-25T13:12:41Z |
My Axis2 1.4.1, ADB binded webservice hosted in Websphere Application server community edition(WASCE)2.1.1.5 installed in Windows7. I have implemented SSL by generated self signed certificate and imported into keystore and cacert files. I tested the webservice from same machine and SSL configuration is successful.
 
Now i want to change the cacert file location from it's default. i.e Java/jre/lib/security to some other location. For that i am using following system params to set at JVM runtime in axis client.
        System.setProperty("javax.net.ssl.trustStore","D:/IBM/var/security/MyKeystore/cacerts"); 
        System.setProperty("javax.net.ssl.trustStorePassword","changeit");
        System.setProperty("sun.security.ssl.allowUnsafeRenegotiation", "true");
When i run my webservice client from main method SSL communication is perfectly fine . If i deploy the code in WASCE it is throwing SSL handshake exception.

I just tried with above JVM run time params set up in setEnv.bat using -Djavax syntax but it was not helped me. For checking the SSL connectivity i tried this option but  i do not want this, since i required to encrypt my keystore/cacerts password from java application.

Could you please share your inputs to resolve the issue.

Regards,

Ram

  • U4UE_xie_zhi
    U4UE_xie_zhi
    54 Posts
    ACCEPTED ANSWER

    Re: Setting up JVM run time properties for truststore in WASCE environment for Axis2 client

    ‏2013-09-04T09:51:09Z  in response to devWasce

    Could you try to add a JAVA_OPTS=-Djavax.net.debug=all in client and server side? Post the log here. Thanks.