How to convert PKCS#8-formatted PEM private key to the traditional format?

后端 未结 1 418
闹比i
闹比i 2020-12-31 06:43

From OpenSSL 1.0 change log:

Make PKCS#8 the default write format for private keys, replacing the traditional format. This form is standardis

1条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-31 06:58

    Succeeded to solve that in that way - the request:

    openssl req -configconfigfile.cfg -newkey rsa:2048 -keyout newkey.pem -out newreq.pem 365
    

    Then, I converted it to RSA format:

    openssl rsa -in newkey.pem -out newkey.pem
    

    Hope that it will help someone.

    0 讨论(0)
提交回复
热议问题