I'm trying to verify some signatures corresponding to some transactions. The transactions were created by issuing:
echo 'A,B,EUR,1,30'|openssl dgst -sha256 -sign A.key -out A.signature
To perform the verification, I have the signature file A.signature and the associated A.crt file.
I'm doing this:
openssl x509 -in A.crt -pubkey -noout > file.txt openssl dgst -sha256 -verify file.txt -signature A.signature trx.txt
where trx.txt contains A,B,EUR,1,30.
The verification is failing. What am I doing wrong?