You can do this with the help of openssl pkeyutlwhich replaces openssl rsautl
which supports ECDSA.
, data.txt openssl.
:
openssl dgst -sha256 -binary -out data.sha256 data.txt
, :
openssl pkeyutl -sign -inkey private.pem -in data.sha256 -out data.sig
ASN.1. r s
openssl asn1parse:
openssl asn1parse -inform DER -in data.sig