JBoss Community

TrustStore in JB5

created by gmgallo in Beginner's Corner - View the full discussion

Good day

 

Guys, I need help because I'm becoming crazy with truststores. I've downloaded a cert (for example gmail cert) and I created my truststore with the command:

[code]keytool -import -alias gmailCert -trustcacerts -keystore myKeyStore.jks -file gmail.cer[/code]

 

I also checked if the cert was properly stored in the truststore with the command:

[code]keytool -list -keyStore myKeyStore.jks[/code]

 

Then I wanted to load it in my jboss 5, so I modified the run.conf adding this java props:

[code]

if [ "x$JAVA_OPTS" = "x" ]; then

   JAVA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djavax.net.debug=ssl -Djavax.net.ssl.trustStore=/Users/gmHome/Documents/Work/myKeyStore.jks -Djavax.net.ssl.trustStorePassword=myKeyStore"

fi

[/code]

 

I launched jboss with the command:

[code]./jboss-5.1.0.GA/bin/run.sh -c all -b0.0.0.0[/code]

 

But I don't know how to check if jboss uses that certificate correctly. Any idea?

 

Thanks a lot

Regards

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community