我需要使用所有需要的 SSL 证书构建一个密钥库,以使我的 Android 应用程序通过 https 连接到网络服务器。
这是我的证书链(用 获得openssl s_client -connect www.myhost.com:443
):
0 s:/C=US/ST=State/L=Location/O=Organization/OU=Webserver Team/CN=www.myhost.com
i:/C=US/O=Thawte, Inc./CN=Thawte SGC CA - G2
1 s:/C=US/O=VeriSign, Inc./OU=VeriSign Trust Network/OU=(c) 2006 VeriSign, Inc. - For authorized use only/CN=VeriSign Class 3 Public Primary Certification Authority - G5
i:/C=US/O=VeriSign, Inc./OU=Class 3 Public Primary Certification Authority
2 s:/C=US/O=Thawte, Inc./CN=Thawte SGC CA - G2
i:/C=US/O=VeriSign, Inc./OU=VeriSign Trust Network/OU=(c) 2006 VeriSign, Inc. - For authorized use only/CN=VeriSign Class 3 Public Primary Certification Authority - G5
3 s:/C=US/O=thawte, Inc./OU=Terms of use at https://www.thawte.com/cps (c)06/CN=thawte Extended Validation SSL CA
i:/C=US/O=thawte, Inc./OU=Certification Services Division/OU=(c) 2006 thawte, Inc. - For authorized use only/CN=thawte Primary Root CA
4 s:/C=US/O=thawte, Inc./OU=Certification Services Division/OU=(c) 2006 thawte, Inc. - For authorized use only/CN=thawte Primary Root CA
i:/C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/OU=Certification Services Division/CN=Thawte Premium Server CA/emailAddress=premium-server@thawte.com
我的问题是我不是 100% 确定如何创建密钥库以导入到我的 android 应用程序中。我只能从 Thawte 和 Verisign 网站下载VeriSign Class 3 Public Primary Certification Authority - G5
和下载。Thawte Primary Root CA
我找不到其他两个如果我没记错应该是Thawte SGC CA - G2
和thawte Extended Validation SSL CA
。
如果我拥有所有这些,我将继续使用此答案中解释的过程创建一个密钥库,以解决与此问题类似的问题。
我是不是误会了什么?我真的需要所有 4 个证书吗?我也不确定将这些证书添加到密钥库时应该使用的顺序(和别名)。有关系吗?