博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jdk导入证书命令 https升级证书对支付的影响
阅读量:5315 次
发布时间:2019-06-14

本文共 2180 字,大约阅读时间需要 7 分钟。

##导出keystore到txt文件,通过序列号来查找是否已经存在。

keytool -list -v -keystore "/usr/java/jdk1.8.0_101/jre/lib/security/cacerts" > cacerts.txt

##定位执行目录

/usr/java/jdk1.8.0_101/jre/bin

##导入,密码默认: changeit 

keytool -import -alias DigiCert_CA_chain -file /home/xx/crt/DigiCert/DigiCert_CA_chain.crt -keystore "/usr/java/jdk1.8.0_101/jre/lib/security/cacerts" -storepass changeit -trustcacerts

keytool -import -alias DigiCert_to_unionpay -file /home/xx/crt/DigiCert/DigiCert_to_unionpay.com.crt -keystore "/usr/java/jdk1.8.0_101/jre/lib/security/cacerts" -storepass changeit -trustcacerts

keytool -import -alias DigiCert_to_unionpaysecure -file /home/xx/crt/DigiCert/DigiCert_to_unionpaysecure.com.crt -keystore "/usr/java/jdk1.8.0_101/jre/lib/security/cacerts" -storepass changeit -trustcacerts

 

keytool -import -alias GlobalSign_CA_chain -file /home/xx/crt/globalsign/GlobalSign_CA_chain.crt -keystore "/usr/java/jdk1.8.0_101/jre/lib/security/cacerts" -storepass changeit -trustcacerts

keytool -import -alias GlobalSign_to_unionpay -file /home/xx/crt/globalsign/GlobalSign_to_unionpay.com.crt -keystore "/usr/java/jdk1.8.0_101/jre/lib/security/cacerts" -storepass changeit -trustcacerts

keytool -import -alias GlobalSign_to_unionpaysecure -file /home/xx/crt/globalsign/GlobalSign_to_unionpaysecure.com.crt -keystore "/usr/java/jdk1.8.0_101/jre/lib/security/cacerts" -storepass changeit -trustcacerts

##查看

keytool -list -alias DigiCert_CA_chain -keystore "/usr/java/jdk1.8.0_101/jre/lib/security/cacerts" -storepass changeit
keytool -list -alias DigiCert_to_unionpay -keystore "/usr/java/jdk1.8.0_101/jre/lib/security/cacerts" -storepass changeit
keytool -list -alias DigiCert_to_unionpaysecure -keystore "/usr/java/jdk1.8.0_101/jre/lib/security/cacerts" -storepass changeit

keytool -list -alias GlobalSign_CA_chain -keystore "/usr/java/jdk1.8.0_101/jre/lib/security/cacerts" -storepass changeit

keytool -list -alias GlobalSign_to_unionpay -keystore "/usr/java/jdk1.8.0_101/jre/lib/security/cacerts" -storepass changeit
keytool -list -alias GlobalSign_to_unionpaysecure -keystore "/usr/java/jdk1.8.0_101/jre/lib/security/cacerts" -storepass changeit

转载于:https://www.cnblogs.com/jhuangsjtu/p/9351727.html

你可能感兴趣的文章
第十一次实验总结
查看>>
SharePoint Timer Job
查看>>
Qt学习资料
查看>>
IOS内存等信息
查看>>
转载:Pixhawk源码笔记一:APM代码基本结构
查看>>
0920,结构体
查看>>
[luoguP2601] [ZJOI2009]对称的正方形(二维Hash + 二分 || Manacher)
查看>>
C#委托和事件的调用
查看>>
解决冲突
查看>>
自定义Git
查看>>
bzoj2132: 圈地计划
查看>>
UVa1607 poj1435 UVaLive1686 Gates
查看>>
黑白图像(DFS)
查看>>
傅里叶变换的物理意义
查看>>
stm32 usmart使用
查看>>
ubuntu linux下建立stm32开发环境: 程序烧录 openocd+openjtag
查看>>
使用命令导入、导出mysql数据
查看>>
webstrom使用方法
查看>>
Python基础七(函数)
查看>>
Eclipse将引用了第三方jar包的Java项目打包成jar文件
查看>>