How to import the www.googleapis.com SSL CA certification to the jks store file?

简介:

Assumed that you have installed JDK and configured JAVA_HOME for your current operation system.
(1) Exported the Google SSL certifications from the www.googleapis.com server using 443 port as the below path:  take D:\GoogleSSL\ for example and named the these 3 CA certifications as below. Regarding on how to export thewww.googleapis.com server SSL certification, please refer to this page  http://blog.csdn.net/chancein007/article/details/25926035


 

(2) Open the CMD console and input the below commands in the command console and enter the same any protected password when the console hints that we should enter a password,
for example, Password123! , Additionally, we should enter “yes” when it hints that “Trust this certification?”
        keytool -import -v -alias GeoTrustGlobalCA -file D:\googleSSL\GeoTrustGlobalCA.cert -keystore D:\googleSSL\googleapi.jks
        keytool -import -v -alias GoogleInternetAuthorityG2 -file D:\googleSSL\GoogleInternetAuthorityG2.cert -keystore D:\googleSSL\googleapi.jks
        keytool -import -v -alias  EquifaxCA -file D:\googleSSL\EquifaxCA.cert  -keystore D:\googleSSL\googleapi.jks
 
(3) Used the keytool  -list  -keystore D:\googleSSL\googleapi.jks to check the above three SSL CA certification has been imported into the googleapi.jks
    


(4) From the above Step3, these 3 CA SSL certifications have been imported into the googleapi.jks successfully!







本文转自mfrbuaa博客园博客,原文链接:http://www.cnblogs.com/mfrbuaa/p/5042595.html,如需转载请自行联系原作者


相关文章
|
2月前
|
安全 网络安全
Peer's certificate issuer has been marked as not trusted by the user. 是什么原因导致的
"Peer's certificate issuer has been marked as not trusted by the user" 是一个SSL/TLS错误消息,通常出现在与安全连接的服务器进行握手时。这个错误消息表示用户将证书颁发机构(Certificate Authority,CA)标记为不受信任。 这种情况可能有以下几个原因: 1. 证书过期:证书有一个有效期限,如果证书已经过期,浏览器会将其标记为不受信任。 2. 证书颁发机构不受信任:浏览器内置了一些受信任的证书颁发机构列表,如果服务器使用的证书颁发机构不在该列表中,浏览器会将其标记为不受信任。 3. 自签名证书:如
283 0
|
9月前
|
安全 网络安全 PHP
解决SSL routines:ssl3_get_server_certificate:certificate verify failed
解决SSL routines:ssl3_get_server_certificate:certificate verify failed
319 0
|
6月前
|
JavaScript 安全 应用服务中间件
Node.js 应用访问 https 服务器时遇到的错误消息 unable to get local issuer certificate
Node.js 应用访问 https 服务器时遇到的错误消息 unable to get local issuer certificate
74 1
|
7月前
|
存储 Java
java.security.cert.CertificateException: None of the TrustManagers trust this certificate chain
ava.security.cert.CertificateException: None of the TrustManagers trust this certificate chain
966 2
|
网络安全 Python
pip is configured with locations that require TLS/SSL
pip is configured with locations that require TLS/SSL
94 0
|
网络安全 开发工具 git
git SSL certificate problem: unable to get local issuer certificate
git SSL certificate problem: unable to get local issuer certificate
207 1
|
TensorFlow 网络安全 算法框架/工具
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
最近在学习TensorFlow,获取fashion_mnist数据集的时候出现了一点小问题,报错内容如下: URL fetch failure on https://storage.googleapis.com/tensorflow/tf-keras-datasets/train-labels-idx1-ubyte.gz: None -- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108) ————————————————
1015 0
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
|
网络安全 PHP
【微信公众号】获取用户信息cURL error 60: SSL certificate: unable to get local issuer certificate
【微信公众号】获取用户信息cURL error 60: SSL certificate: unable to get local issuer certificate
160 0
|
网络安全
curl error: SSL certificate problem: unable to get local issuer certificate解决方案
curl error: SSL certificate problem: unable to get local issuer certificate解决方案
316 0
|
网络安全 Apache 数据安全/隐私保护
Apache错误日志提示AH02004: SSL Proxy: Peer certificate is expired
Apache错误日志提示AH02004: SSL Proxy: Peer certificate is expired
181 0
Apache错误日志提示AH02004: SSL Proxy: Peer certificate is expired