简体   繁体   English

在Tomcat中安装更新的SSL证书

[英]Install a renewed SSL certificate in Tomcat

I successfully installed a GoDaddy SSL certificate in Tomcat last year. 去年,我在Tomcat中成功安装了GoDaddy SSL证书。

When the certificate expired, I renewed it. 证书过期后,我将其续订。 I did this without generating a new keystore or CSR. 我这样做时没有生成新的密钥库或CSR。 GoDaddy delivered three files to me, gd_bundle.crt, gd_intermediate.crt, and a third .crt file with a random number as the name. GoDaddy向我提供了三个文件gd_bundle.crt,gd_intermediate.crt和第三个.crt文件,其名称为随机数。

I don't know what to do next. 我不知道下一步该怎么做。 I assume I have to incorporate these files into my existing keystore. 我假设必须将这些文件合并到我现有的密钥库中。 GoDaddy provides this help page: http://support.godaddy.com/help/article/5355/ssl-certificate-renewal-tomcat-4-x5-x6-x GoDaddy提供以下帮助页面: http : //support.godaddy.com/help/article/5355/ssl-certificate-renewal-tomcat-4-x5-x6-x

The page says I can do this one of two ways. 页面上说我可以用以下两种方法之一来做。 I tried the first way and all I got was an error message saying "-inkey: no such file or directory". 我尝试了第一种方法,但我得到的只是一条错误消息,内容为“ -inkey:无此类文件或目录”。 I tried the second way, but I do not have any file with the name it references, and also any attempt to import the new certs into the existing keystore results in an error "certificate not imported, alias already exists". 我尝试了第二种方法,但是我没有任何文件具有其引用的名称,并且任何尝试将新证书导入到现有密钥库中的尝试都会导致错误“证书未导入,别名已经存在”。

What is the correct way to update my keystore file with the new certificate? 用新证书更新密钥库文件的正确方法是什么?

Thanks. 谢谢。

您需要使用密钥工具,通过-importcert选项,使用已使用的别名将编号文件导入现有的密钥库中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM