0 Replies Latest reply on Apr 13, 2013 11:21 AM by gmgallo

    TrustStore in JB5

    gmgallo Newbie

      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:


      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"




      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