-
證書配置
-
java.io.IOException: Alias name XXXXX does not identify a key entry
原因是SSL證書配置錯誤,Alias沒有配置正確
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="/root/xxxx.jks" keystorePass="password" keyAlias="yourAliasName" URIEncoding="UTF-8" />
其中
- keystoreFile 爲給你的jks文件路徑
- keystorePass 爲你的證書導出時候配置的密碼
- keyAlias 查看方法 Linux環境
- ````bash
keytool -keystore ts1.magicmanufactory.com.jks -list
Enter keystore password:
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 1 entry
your.alias.name, Dec 8, 2017, PrivateKeyEntry,
Certificate fingerprint (SHA1): 00:00:00:00:00:00:00:00:00:00:65:53:83:A3:2A:64:B8:5C:83:F9
-
把your.alias.name 配置到keyAlias字段就完成配置了