Skip to content

Instantly share code, notes, and snippets.

@ferco0
Last active July 30, 2020 02:09
Show Gist options
  • Save ferco0/aea150c1a6c8bd48559dedf9d0c74b1b to your computer and use it in GitHub Desktop.
Save ferco0/aea150c1a6c8bd48559dedf9d0c74b1b to your computer and use it in GitHub Desktop.
gen private/public keypair
openssl ecparam -name prime256v1 -genkey -noout -out ecdsa-private.pem
openssl ec -in ecdsa-private.pem -pubout -out ecdsa-public.pem
openssl genrsa -des3 -out rsa-private.pem 2048 &&
openssl rsa -in rsa-private.pem -outform PEM -pubout -out rsa-public.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment