10

我正在尝试在 JBoss Application Server 7 中设置 SSL。我想要 http 和 https,所以我添加了:

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

我按照https://docs.jboss.org/author/display/AS7/Security+subsystem+configuration的指示创建了一个 jsse 元素

我应该把这个 jsse 元素放在standalone.xml 中的什么位置,如何将它绑定到 https 连接器?

4

1 回答 1

12

好的,我在一起搜索“Jboss 7”和 https 后发现了它。http://community.jboss.org/message/625454

http://docs.jboss.org/jbossweb/7.0.x/config/ssl.html

是有用的资源。

在这种情况下不需要 jsse 元素,我需要做的就是添加

<ssl key-alias="<alias>" password="<password>" certificate-key-file="<path>" verify-client="true" ca-certificate-file="<path>"/>

虽然有一个错误,https://issues.jboss.org/browse/AS7-1680,其中 ca-certificate-file 的值被忽略。我为了获得客户端身份验证,信任库必须以不同的方式传递,通过standalone.conf 或

<system-properties>
     <property name="javax.net.ssl.trustStore" value="<path to truststore file>"/>
</system-properties>
于 2011-11-10T22:52:41.663 回答