我按照以下鏈接到JBoss安裝HTTPS AS 7.1.2HTTPS在JBoss AS 7.1.2
http://middlewaremagic.com/jboss/?p=992
但畢竟這當我啓動JBoss,我得到以下錯誤:
10:31:05,481 ERROR [org.apache.coyote.http11.Http11AprProtocol]
↳ (MSC service thread 1-11) Error initializing endpoint: java.lang.Exception:
↳ Unable to load certificate key ../standalone/configuration/chap8.keystore
↳ (error:0906D06C:PEM routines:PEM_read_bio:no start line)
at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method) [jbossweb-7.0.16.Final.jar:]
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:644) [jbossweb-7.0.16.Final.jar:]
at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:121) [jbossweb-7.0.16.Final.jar:]
at org.apache.catalina.connector.Connector.init(Connector.java:983) [jbossweb-7.0.16.Final.jar:]
at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267) [jboss-as-web-7.1.2.Final.jar:7.1.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
10:31:05,489 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-11)
↳ 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) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
Caused by: LifecycleException: Protocol handler initialization failed: java.lang.Exception:
↳ Unable to load certificate key ../standalone/configuration/chap8.keystore
↳ (error:0906D06C:PEM routines:PEM_read_bio:no start line)
at org.apache.catalina.connector.Connector.init(Connector.java:985)
at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267)
... 5 more
請幫我解決這個問題。
我認爲這個問題是與你的密鑰庫,你創建/自己產生的呢? – Omoro
是的,我自己通過進入「keytool」實用程序自己生成它,該實用程序默認隨JDK一起提供,並存在於「$ JAVA_HOME/bin」目錄中。 http://middlewaremagic.com/jboss/?p=992 – user3218948
嘗試下載KeyStore瀏覽器並查看是否可以成功打開de keystore。這裏是鏈接http://keystore-explorer.sourceforge.net/。順便說一下,如果您有證書,您可以使用KeyStore資源管理器導入並輕鬆創建密鑰/信任存儲。希望你的CN也能正確分配,例如cn =證書中的主機名。 – Omoro