[jboss-user] [Beginner's Corner] - TrustStore in JB5

gmgallo do-not-reply at jboss.com
Sat Apr 13 11:21:34 EDT 2013


gmgallo [https://community.jboss.org/people/gmgallo] created the discussion

"TrustStore in JB5"

To view the discussion, visit: https://community.jboss.org/message/808149#808149

--------------------------------------------------------------
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
[https://community.jboss.org/message/808149#808149]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130413/c1dc56b6/attachment.html 


More information about the jboss-user mailing list