Creating Public/Private Key Pairs
Generating an RSA Key
$ openssl genpkey -algorithm RSA -out rsa_private.pem -pkeyopt rsa_keygen_bits:2048
$ openssl rsa -in rsa_private.pem -pubout -out rsa_public.pemGenerating Elliptic Curve Keys
$ openssl ecparam -genkey -name prime256v1 -noout -out ec_private.pem
$ openssl ec -in ec_private.pem -pubout -out ec_public.pemSelf-Signed RSA X509 Certificate
Self-Signed EC X509 Certificate
Last updated
Was this helpful?