3 Replies Latest reply on Mar 5, 2012 11:34 AM by Tomaz Cerar

    No Certificate file specified or invalid file format

    Steven xu Newbie

      I have configured SSL in JBoss 7.1.0.Final according to the following link.

      https://community.jboss.org/wiki/JBossAS7ConfiguringSSLOnJBossWeb

       

      It can work with standalone mode, But I have encountered some exceptions when JBoss start with domain mode.

      (Using the "Http11Protocol" protocol When jboss start with standalone mode.)

       

      I have tried the following way, But the exception still occur.

      1. Change "native" attribute to "true" in the domain.xml file.

      2. downloaded native library to /bin/native directory and setted java library path.

      http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-10.html

       

      17:19:55,380 ERROR (MSC service thread 1-2) Error initializing endpoint: java.lang.Exception: No Certificate file specified or invalid file format

           at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method)

           at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:638)

           at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:121)

           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$Worker.runTask(ThreadPoolExecutor.java:886)

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

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

       

      17:19:55,458 INFO  (MSC service thread 1-3) Starting Coyote HTTP/1.1 on http--0.0.0.0-8080

      17:19:55,505 ERROR (MSC service thread 1-2) 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$Worker.runTask(ThreadPoolExecutor.java:886)

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

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

      Caused by: LifecycleException:  Protocol handler initialization failed: java.lang.Exception: No Certificate file specified or invalid file format

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

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

           ... 5 more