I have already msg.txt with the message data. I have sign.txt with the signed data obtained after signing it with some private key which I don't have. I pub-key.txt with the public key used for verifying the hash. I am unable to write an openssl command to verify the signed text.
I think it should be
openssl dgst -sha256 -verify pub-key.txt -signature sign.txt msg.txt
but I am getting the following error:
Error Verifying Data
12988:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:.\crypto\asn1\tasn_dec.c:1327:
12988:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:.\crypto\asn1\tasn_dec.c:381:Type=ECDSA_SIG