7 Replies Latest reply on Oct 24, 2013 8:30 AM by erasmomarciano

    SSL Configuration in JBoss AS 7.1

    ursveera

      Hi,

      I wanted to enable SSL in JBoss AS 7.1 with self signed certificates.

       

      Below are the steps i followed.

       

      1)  Generated self signed certificate using keytool

           keytool -genkey -alias server -keystore keystore.jks -keyalg RSA -keysize 1024 -validity 365 -dname "CN=veera-pc, OU=adsf, O=asdf, L=hyd, ST=ap, C=in" -storepass changeit -keypass changeit

       

      2) exported certificate from keytool

          keytool -export -alias server -keystore keystore.jks -storepass changeit  -file server.cer

       

      3) imported certificate into truststore using  keytool command

           keytool -import  -trustcacerts -alias server  -keystore truststore.jks -file server.cer

       

      4) in standalone.xml, added https connector.

          

                 <connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">

                      <ssl name="myssl" password="changeit" certificate-key-file="d:/certificates/keystore.jks" verify-client="true" ca-certificate-file="d:/certificates/truststore.jks"/>

                  </connector>

       

      when verify-client = true, i am getting below exception when trying to access the application/webservice wsdl file.

       

      Error 117 (net::ERR_BAD_SSL_CLIENT_AUTH_CERT): Bad SSL client authentication certificate.

       

      Could you please let me know where i did mistake and how to correct it.

       

      Thanks,

      Veera