Appendix 4
Generate EC Keypair
Generate the public and private keys.
- Private Key
- Public Key
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
Generate ec_public_key.pem
from ec_private_key.pem
openssl ec -in ec_private_key.pem -pubout -out ec_public_key.pem