Created
June 27, 2022 07:32
-
-
Save stefanopulze/45e1b8bf556a8ef3568be2e363d52607 to your computer and use it in GitHub Desktop.
Self-Signed SSL Cert with ECDSA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find your curve | |
openssl ecparam -list_curves | |
# generate a private key for a curve | |
openssl ecparam -name prime256v1 -genkey -noout -out private-key.pem | |
# generate corresponding public key | |
openssl ec -in private-key.pem -pubout -out public-key.pem | |
# optional: create a self-signed certificate | |
openssl req -new -x509 -key private-key.pem -out cert.pem -days 360 | |
# optional: convert pem to pfx | |
openssl pkcs12 -export -inkey private-key.pem -in cert.pem -out cert.pfx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment