JBoss - 配置server.xml连接器

时间:2012-04-12 20:34:10

标签: security ssl jboss ssl-certificate keystore

我在server.xml中配置了HTTP连接器,添加了一些ssl功能。我试图将我的keyAlias设置为某个证书的别名的名称(而不是密钥库的私钥)。然后,当我启动JBoss时,我会得到类似的东西:

[2012-04-12 17:01:37,236 ERROR [org.apache.coyote.http11.Http11Protocol] Error 
initializing endpoint
java.io.IOException: Alias name <somealias> do not indetify a key entry

我也是ssl配置和Web安全核心概念的新手。谢谢你的耐心。

编辑:完成堆栈跟踪:

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:412)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:378)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:135)
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:497)
at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:514)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
at org.apache.catalina.connector.Connector.start(Connector.java:1146)
at org.jboss.web.tomcat.service.JBossWeb.startConnectors(JBossWeb.java:601)
at org.jboss.web.tomcat.service.JBossWeb.handleNotification(JBossWeb.java:638)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
at $Proxy46.handleNotification(Unknown Source)
at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
at org.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:916)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:497)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:662)

1 个答案:

答案 0 :(得分:1)

看起来您没有导入密钥属性。我建议您根据这两个文档审核您的步骤

http://docs.jboss.org/jbossweb/3.0.x/ssl-howto.html

这里有一个较短的版本

http://www.agentbob.info/agentbob/79-AB.html