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

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.

-- 
View this message in context: 
http://www.nabble.com/OpenSSL-verification-problem-tp20111876p20111876.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to