I'm not sure where you're getting these command line options from - the help for dgst
doesn't indicate that -ecdsa-with-SHA1
, -inkey
or -in
are valid options. Try:
Sign:
openssl dgst -sha1 -sign private.pem < test.pdf > signature.bin
Verify:
openssl dgst -sha1 -verify public.pem -signature signature.bin < test.pdf