zoukankan      html  css  js  c++  java
  • https自签证书

    linux自带openssl,所以最好在linux平台操作

    第一步:生成采用des3算法保护的私钥:openssl genrsa -des3 -out private-rsa.key 1024

        命令执行过程中的提示信息Enter pass phrase 的含义是输入用来保护私钥文件的密码(最好不要超过6位)。

    第二步:生成公钥证书:openssl  req -new -x509 -key private-rsa.key -days 750 -out public-rsa.cer

        该过程除了最开始时需要输入私钥文件的保护密码之外,其他需要的输入均可直接回车忽略,不影响正常使用。为方便我统一用了一个密码(不建议)

    第三步:生成PKCS12 格式Keystore:

     openssl pkcs12 -export -name test-alias -in public-rsa.cer -inkey private-rsa.key -out user-rsa.pfx

    ok,操作完成。
    ---------------------
    作者:若Q清风
    来源:CSDN
    原文:https://blog.csdn.net/u012191627/article/details/80990066
    版权声明:本文为博主原创文章,转载请附上博文链接!

  • 相关阅读:
    leetcode 443: String Compression,357: Count Numbers with Unique Digits
    C++ 中 freopen()函数的用法
    filter
    map
    os.listdir
    os.path.join
    assert
    numpy中的axis和Pytorch中的dim参数
    mac中qq接收视频存放的位置
    requests
  • 原文地址:https://www.cnblogs.com/xdcr/p/10769555.html
Copyright © 2011-2022 走看看