OpenSSL verification problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux