openssl x509 -in cert.pem -pubkey >& pubkey.txt openssl dgst -sha256 -verify pubkey.txt -signature signature.txt myData.txt