zoukankan      html  css  js  c++  java
  • sun 证书问题解决

    1.下载的需要的证书:

     sudo ./$JAVA_HOME/jre/bin/keytool -import -alias WOSt03 -keystore $JAVA_HOME/jre/lib/security/cacerts -file /home/sea/WOS-T03.UFREIGHT.COM

    点击:锁 ;查看更多细节

        

    2.view  certificate 

    ..

    3.导出证书:

    4.到入证书到JDK

    方式1:
    /usr/lib/jvm/jdk1.8.0_172/jre/lib/security$ sudo ../../bin/keytool -import -file /home/sea/Desktop/pebs -keystore /usr/lib/jvm/jdk1.8.0_172/jre/lib/security/cacerts -alias pebs
    方式2:
    /usr/lib/jvm/jdk1.8.0_172/jre/lib/security$ sudo ../../bin/keytool -import -file /home/sea/Desktop/0605/192.168.18.118 -keystore /usr/lib/jvm/jdk1.8.0_172/jre/lib/security/jssecacerts -alias 192.168.18.118



     说明:

    cacerts :可理解为: jdk 的证书库
    sudo ../../bin/keytool -import -file [证书的url]   -keystore    /usr/lib/jvm/jdk1.8.0_172/jre/lib/security/cacerts   -alias   pebs
    keytool 密令:必须在的它的路径在使用(../jre/bin/下)
     

       默认的密码:changeit

    dockerfile 中使用:

    # where is jre
    ENV JRE /usr/lib/jvm/java-8-oracle/jre

    # import the sun certificate to jdk

    ADD WOS-T01UFREIGHTCOM.crt $JRE/lib/security/

    RUN echo "yes" | .$JRE/bin/keytool -import -file $JRE/lib/security/WOS-T01UFREIGHTCOM.crt -alias WOS-T01UFREIGHTCOM -keyalg RSA -keystore $JRE/lib/security/jssecacerts -keypass changeit -storepass changeit

  • 相关阅读:
    软件/环境的注册码
    js图片延迟加载如何实现
    http状态码
    关于深拷贝(含数组对象)
    javascript继承方式详解
    使用寄生构造函数 创建类
    前端知识点大全【转载】
    统一addEventListener与attachEvent中this指向问题
    sublime text全程指南【转载】
    函数防抖与节流[转载]
  • 原文地址:https://www.cnblogs.com/lshan/p/9155146.html
Copyright © 2011-2022 走看看