Is it possible to generate digital signatures using secp384r1 / SHA-256 from the OpenSSL command line (I'm using version 1.0.1c)? After some experimentation I can generate signatures with SHA-1 using:
openssl dgst -sign ec-key.pem -ecdsa-with-SHA1 -binary < test.bin > sig.bin
but
openssl dgst -sign ec-key.pem -ecdsa-with-SHA256 -binary < test.bin > sig.bin
just gives me a known option for '-ecdsa-with-SHA256'?
Thanks in advance
Try use -sha256
instead of -ecdsa-with-SHA256
, and use an EC key to sign it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With