我按照以下说明在 Apache Tomcat 中安装 GoDaddy 证书:
但是,步骤中引用了根证书、中间证书和证书。我如何分辨哪个文件是哪个?
这是我下载的三个文件的名称。我也尝试过在 Windows 中通过双击打开每个文件,但我看不到它们的类型。
gd_bundle-g2-g1.crt
自定义dig2.crt
2b9918dccf2f1d.crt
答案1
gd_bundle-g2-g1.crt
:Go Daddy 证书包 - G2 可跨 G1,包含 Rootgdig2.crt
:Go Daddy 安全服务器证书(中级证书)-G22b9918dccf2f1d.crt
:您的证书
答案2
您可以openssl
使用x509
子命令:
openssl x509 -subject -issuer -noout -in cert.pem
并检查输出。应该是不言自明的。
一个例子:
$ openssl x509 -noout -issuer -subject -in gd-class2-root.crt
issuer= /C=US/O=The Go Daddy Group, Inc./OU=Go Daddy Class 2 Certification Authority
subject= /C=US/O=The Go Daddy Group, Inc./OU=Go Daddy Class 2 Certification Authority
$ openssl x509 -noout -issuer -subject -in gd_intermediate.crt
issuer= /C=US/O=The Go Daddy Group, Inc./OU=Go Daddy Class 2 Certification Authority
subject= /C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=07969287
您还可以验证信任链:
$ openssl verify -CAfile gd-class2-root.crt gd_intermediate.crt
gd_intermediate.crt: OK