在JBoss AS 7中设置SSL [英] Setting up SSL in JBoss AS 7

查看:160
本文介绍了在JBoss AS 7中设置SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在JBoss Application Server 7中设置SSL.我希望使用http和https,所以我添加了:

I am attempting to get SSL set up in JBoss Application Server 7. I want http and https so I added:

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

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

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

Where do I put this jsse element in standalone.xml and how do I tie it to the https connector?

推荐答案

好吧,我在一起搜索了"Jboss 7"和https之后就知道了. http://community.jboss.org/message/625454

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

是有用的资源.

Okay, I figured it out after searching for "Jboss 7" and https together. http://community.jboss.org/message/625454

and

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

were helpful resources.

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

A jsse element is not necessary in this case, all I needed to do was add

<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或

Although there is a bug, https://issues.jboss.org/browse/AS7-1680, in which the value of ca-certificate-file is ignored. I order to get client authentication the truststore has to be passed a different way, either through standalone.conf or

<system-properties>
     <property name="javax.net.ssl.trustStore" value="<path to truststore file>"/>
</system-properties>

这篇关于在JBoss AS 7中设置SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆