Skip to main content

Appendix 4

Generate EC Keypair

Generate the public and private keys.

Step 1 : Generate EC Private Key

openssl ecparam -genkey -name prime256v1 -noout -out ec_private_key.pem

Step 2 : Convert to pkcs8 format

openssl pkcs8 -topk8 -inform PEM -outform PEM -in ec_private_key.pem -out ec_private_key_pkcs8.pem -nocrypt