zoukankan      html  css  js  c++  java
  • jdk导入证书命令 https升级证书对支付的影响

    ##导出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

  • 相关阅读:
    Centos 环境变量
    Centos 多线程下载工具-axel
    【Sprint3冲刺之前】项目可行性研究报告
    【Sprint3冲刺之前】TDzhushou软件项目测试计划书
    【Sprint3冲刺之前】日历表的事件处理和管理(刘铸辉)
    【Sprint3冲刺之前】项目完成时间表
    【Sprint3冲刺之前】敏捷团队绩效考核(刘铸辉)
    【每日Scrum】第八天(4.29) TD学生助手Sprint2
    【每日Scrum】第七天(4.28)Sprint2总结性会议
    需求分析
  • 原文地址:https://www.cnblogs.com/jhuangsjtu/p/9351727.html
Copyright © 2011-2022 走看看