簡體   English   中英

在JBoss AS 7中設置SSL

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM