【问题标题】:How can i renew an expired or create self-signed certificate key any.pem Poco c++ using openssl如何使用 openssl 更新过期或创建自签名证书密钥 any.pem Poco c++
【发布时间】:2018-01-07 11:23:06
【问题描述】:

-----开始证书----- MIIE ... 1Ozy -----结束证书----- -----开始 RSA 私钥----- Proc-Type:4,加密 DEK-信息:DES-EDE3-CBC,0950752701CB74AF

OmaLd ... hWh8GKd -----结束 RSA 私钥-----

【问题讨论】:

    标签: c++ ssl poco-libraries


    【解决方案1】:

    我回答了我的问题

    Openssl> req -x509 -days 365 -newkey rsa:2048 -keyout any.pem -out any.pem

    (密码=秘密)

    Openssl> req -new -key -any.pem -out server.csr

    Openssl> x509 -req -in server.csr -signkey any.pem -out rootcert.pem

    【讨论】:

      【解决方案2】:

      小更新及如何运行

      由于错误:140006379889088:error:02001002:system library:fopen:No such file or directory:crypto/bio/bss_file.c:74:fopen('-any.pem','r')

      openssl req -x509 -days 365 -newkey rsa:2048 -keyout any.pem -out any.pem
      openssl req -new -key any.pem -out server.csr #no more -any.pem
      openssl x509 -req -in server.csr -signkey any.pem -out rootcert.pem
      

      【讨论】:

        猜你喜欢
        • 2014-03-05
        • 1970-01-01
        • 1970-01-01
        • 2014-10-26
        • 2018-02-16
        • 2013-11-10
        • 2017-07-12
        • 2019-12-16
        • 2012-11-28
        相关资源
        最近更新 更多