-
证书配置
-
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字段就完成配置了