Tomcat證書配置

  • 證書配置

      1. 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"

    1. maxThreads="150" scheme="https" secure="true"
    2. clientAuth="false" sslProtocol="TLS"
    3. keystoreFile="/root/xxxx.jks" keystorePass="password" keyAlias="yourAliasName" URIEncoding="UTF-8" />
    1. 其中
    2. - keystoreFile 爲給你的jks文件路徑
    3. - keystorePass 爲你的證書導出時候配置的密碼
    4. - keyAlias 查看方法 Linux環境
    5. - ````bash
    6. keytool -keystore ts1.magicmanufactory.com.jks -list
    7. Enter keystore password:
    8. Keystore type: JKS
    9. Keystore provider: SUN
    10. Your keystore contains 1 entry
    11. your.alias.name, Dec 8, 2017, PrivateKeyEntry,
    12. Certificate fingerprint (SHA1): 00:00:00:00:00:00:00:00:00:00:65:53:83:A3:2A:64:B8:5C:83:F9
  1. your.alias.name 配置到keyAlias字段就完成配置了
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章