2 Replies Latest reply on Dec 17, 2014 2:58 AM by valsaraj viswanathan

    HTTPS connector configuration issue with JBoss AS 7.1.2

    valsaraj viswanathan Master

      Hi,

       

      I am getting following exception when I deploy ear.

       

      2014-12-04 16:19:23,273 ERROR [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-5) Error initializing endpoint: java.io.IOException: Alias name jboss does not identify a key entry

        at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:517)

        at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:452)

        at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:168)

        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:978)

        at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:190)

        at org.apache.catalina.connector.Connector.init(Connector.java:983)

        at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

        at java.lang.Thread.run(Thread.java:722)

       

      2014-12-04 16:19:23,303 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-4) JBAS010406: Registered connection factory java:/JmsXA

      2014-12-04 16:19:23,340 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.web.connector.https: org.jboss.msc.service.StartException in service jboss.web.connector.https: JBAS018007: Error starting web connector

        at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:271)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

        at java.lang.Thread.run(Thread.java:722)

      Caused by: LifecycleException:  Protocol handler initialization failed: java.io.IOException: Alias name jboss does not identify a key entry

        at org.apache.catalina.connector.Connector.init(Connector.java:985)

        at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267)

        ... 5 more

       

      What might be wrong?

        • 1. Re: HTTPS connector configuration issue with JBoss AS 7.1.2
          Jay SenSharma Master

          Usually this error occurs if key entry is incorrect.

          Looks like you have given a Wrong "key-alias" inside your web connector SSL tag

           

          For example:

           

          If you create your keystore as following and place it inside your standalone/configuration directory :   (Notice i gave alias as "chapter8")

           

          keytool -genkey -keystore chap8.keystore -storepass rmi+ssl -keypass rmi+ssl -keyalg RSA -alias chapter8 -validity 3650 -dname "cn=chapter8 example,ou=admin book,dc=jboss,dc=org"
          
          

           

          But if you define the web connector as following then you must get the following error:

           

                      <connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">
                          <ssl name="ssl" key-alias="chapter8A" password="rmi+ssl" certificate-key-file="${jboss.server.config.dir}/chap8.keystore" protocol="TLSv1" verify-client="false" certificate-file="${jboss.server.config.dir}/chap8.keystore"/>
                      </connector>
          
          

           

          NOTICE:  Mistakenly i gave wrong alias:   key-alias="chapter8A"

           

          So i must get the following error:

          17:04:31,967 ERROR [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-6) Error initializing endpoint: java.io.IOException: Alias name chapter8A does not identify a key entry.
          .
          .
          
          17:04:31,978 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.web.connector.https: org.jboss.msc.service.StartException in service jboss.web.connector.https: JBAS018007: Error starting web connector
          .
          .
          
          Caused by: LifecycleException:  Protocol handler initialization failed: java.io.IOException: Alias name chapter8A does not identify a key entry
              at org.apache.catalina.connector.Connector.init(Connector.java:1003)
              at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:268)
              ... 5 more
          
          

           

          So you must check your  Keystore alias name and the same alias should be defined in JBoss configuration.

          • 2. Re: HTTPS connector configuration issue with JBoss AS 7.1.2
            valsaraj viswanathan Master

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

                            <ssl key-alias="xxxxxx" password="app" certificate-key-file="${jboss.server.config.dir}/appdev-webserver.p12" protocol="TLSv1" verify-client="false" keystore-type="PKCS12"/>

                        </connector>

             

            Issue fixed when key-alias added.

            It can be found using the following command.

            keytool -list -v -keystore test.p12 -storetype PKCS12

            1 of 1 people found this helpful