在JBoss AS 7中设置SSL

Mar*_*und 8 ssl jboss jboss7.x

我试图在JBoss Application Server 7中设置SSL.我想要http和https所以我添加了:

<connector name="https" scheme="https" protocol="HTTP/1.1" secure ="true" socket-   binding="https"/>
Run Code Online (Sandbox Code Playgroud)

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

我在哪里将这个jsse元素放在standalone.xml中,如何将它绑定到https连接器?

Mar*_*und 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>"/>
Run Code Online (Sandbox Code Playgroud)

虽然有一个错误,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>
Run Code Online (Sandbox Code Playgroud)