Tomcat证书配置

  • 证书配置

    •  
            
      1. java.io.IOException: Alias name XXXXX does not identify a key entry

      原因是SSL证书配置错误,Alias没有配置正确

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

你可能感兴趣的:(J2EE,Web容器,运维)