OpenSSL command line for digital signatures secp384r1 / SHA-256

Is it possible to generate digital signatures using secp384r1 / SHA-256 from the OpenSSL command line (I use version 1.0.1c)? After some experimentation, I can generate signatures using 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 giving me the famous option for '-ecdsa-with-SHA256'?

Thank you in advance

+4
source share
1 answer

Try using -sha256 instead of -ecdsa-with-SHA256 and use the EC key to sign it.

+1
source

Source: https://habr.com/ru/post/1469046/


All Articles