I am new to code signing. After signing my message I get a public key and pkcs7 certificate. I am trying to manually compare the hash of my massage with the hash I get after decrypting the signature using the public key.
My problem is that I don't know how to get the hash from decrypting the signature with the public key using an opessl command. The encryption algorithm is ecdsa with sha384. Is there any way the decrypt the signature using the public key in console and print the hash?
I have the following files:
- publicKey.pem
- signature_certificate.pem