RSA Private Key

About

This article is about the private key generated by the RSA implementation

Command

Info

With openssl rsa module 1)

openssl rsa -in pkcs8.pem -text -noout

Create a public key

Create a public key

openssl rsa -in key.pem -pubout -out pubkey.pem

Convert from PEM to pkcs8 base64 PEM

Convert a private key to PKCS#8 unencrypted format with 2)

openssl pkcs8 -in key.pem -topk8 -nocrypt -out enckey.pem

Convert from PEM to pkcs12

openssl pkcs12 -export -nocerts -inkey pkcs8.pem -out pkcs12.p12

Powered by ComboStrap