-
1. Re: Issue in setting up keystore in jboss
its_me Jun 15, 2012 6:23 AM (in response to its_me)We would like to add the following details:
We are connecting to the other server using the following code:
SSLSocketFactory sslsocketfactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
URL url = new URL("https://newDomain.com:assignedPort/neededService");
We are running the server as run.bat -b 0.0.0.0
Thanks,
Nid............................
-
2. Re: Issue in setting up keystore in jboss
its_me Jun 18, 2012 3:08 AM (in response to its_me)Hi All,
Finally managed to crack this one. No addition needed in server.xml or properties-service.xml or System.setProperties in the code. Add the following lines in run.conf.bat in jboss/bin folder and it works like a charm:
rem # Setting the Keystore and TrustStore Values
set "JAVA_OPTS=%JAVA_OPTS% -Djavax.net.ssl.keyStore=D:\keyFile"
set "JAVA_OPTS=%JAVA_OPTS% -Djavax.net.ssl.keyStorePassword=changeit"
set "JAVA_OPTS=%JAVA_OPTS% -Djavax.net.ssl.trustStore=D:\keyFile"
set "JAVA_OPTS=%JAVA_OPTS% -Djavax.net.ssl.trustStorePassword=changeit"
Thanks,
Nids..............................