Generate elliptic-curve keypair in OpenSSL
Table of contents
First, create the private key.
shell
# Feel free to name `private.ec.key` whatever you wantopenssl ecparam -name prime256v1 -genkey -noout -out private.ec.key
Next, from the private key, generate the public key.
shell
# Replace `public.pem` with anything that you want.## Be sure that `private.ec.key` is pointing to the correct private key path.openssl ec -in private.ec.key -pubout public.pem