Created
November 2, 2021 18:56
-
-
Save csobankesmarki/346e24646f5709659abd1c8f5f487df4 to your computer and use it in GitHub Desktop.
OpenSSL ECDSA commands
This file contains hidden or 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
Create private key: | |
openssl ecparam -genkey -name prime256v1 -noout -out ecdsa256.pem | |
Create public key: | |
openssl ec -in ecdsa256.pem -pubout -out ecdsa256.pub | |
Sign something | |
openssl dgst -sha256 -sign ecdsa256.pem -out youranyfile.sig256 youranyfile | |
To verify: | |
openssl dgst -sha256 -verify ecdsa256.pub -signature youranyfile.sig256 youranyfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment