[英]Setting up SSL in JBoss AS 7
我试图在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连接器?
好吧,我在搜索“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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.