老鬼的博客 来都来啦,那就随便看看吧~
liberty配置SSL
发布于: 2019-11-25 更新于: 2019-11-25 分类于: Liberty 阅读次数: 

一:介绍

1
2
liberty配置SSL的出站规则,使用了在配置文件中使用 Ref 标记来配置,
一些通用的东西配置在了usr/shared/config和resource目录下。

二:配置文件介绍

1574668272.png

  • 2.1 ssl.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<server> 
<featureManager>
<feature>transportSecurity-1.0</feature>
</featureManager>

<!-- default SSL configuration is defaultSSLSettings -->
<sslDefault sslRef="defaultSSLSettings" />

<ssl id="defaultSSLSettings"
keyStoreRef="defaultKeyStore"
trustStoreRef="defaultTrustStore"
clientAuthenticationSupported="true" />

<keyStore id="defaultKeyStore"
location="key.jks"
type="JKS" password="aq1sw2de3" />

<keyStore id="defaultTrustStore"
location="trust.jks"
type="JKS" password="aq1sw2de3" />

<ssl id="mySSLSettings"
keyStoreRef="LDAPKeyStore"
trustStoreRef="LDAPTrustStore"
clientAuthentication="true" />

<keyStore id="LDAPKeyStore"
location="${server.config.dir}/LDAPKeyStore.p12"
type="PKCS12"
password="{xor}CDo9Hgw=" />

<keyStore id="LDAPTrustStore"
location="${server.config.dir}/LDAPTrustStore.p12"
type="PKCS12"
password="{xor}CDo9Hgw=" />
</server>

三:相关参考文档

3.1 官方

3.2 其他参考文档(原创)

*************感谢您的阅读*************