OpenSSL verification problem
Kadir <[email protected]> Wed, 22 Oct 2008 07:17:47 -0700 (PDT)
| Newsgroups | gmane.linux.cryptography |
|---|---|
| Message-ID | <[email protected]> |
Hi, I created a Certificate Authority with using openssl and CA.pl. I can sign a file with the following openssl command without any problem. # openssl smime -sign -in hello.txt -out hello.sign -outform pem -inkey demoCA/private/cakey.pem -signer demoCA/cacert.pem But I can't verify the signed file with the following code. And after running this command I receive the following error message. How can I solve this problem. # openssl smime -verify -inform PEM -in hello.sign -content hello.txt -CAfile demoCA/cacert.pem Merhaba Dunya Verification failure 1893:error:21071065:PKCS7 routines:PKCS7_signatureVerify:digest failure:pk7_doit.c:948: 1893:error:21075069:PKCS7 routines:PKCS7_verify:signature failure:pk7_smime.c:312: Sincerelly, Kadir.