Hello,

I signed a file using the following command:

openssl smime -sign -binary -signer one.cer -inkey one.key -in mymsg.txt
-out mymsg.msg

Then I tried to verify the signature with this command:

openssl smime -verify -in mymsg.msg -out mymsg.verified -CAfile ca.pem
-certfile one.cer

And I get this error:

Verification failure
100694:error:21071065:PKCS7 routines:PKCS7_signatureVerify:digest
failure:pk7_doit.c:808:
100694:error:21075069:PKCS7 routines:PKCS7_verify:signature
failure:pk7_smime.c:256:

Please help !




**********************************************************************
Ce message electronique et tous les fichiers attaches qu'il contient sont 
confidentiels et destines exclusivement a l'usage de la personne a laquelle ils sont 
adresses.
Si vous avez recu ce message par erreur,merci de le retourner a son emetteur.
Les idees et opinions presentees dans ce messages sont celles de son auteur, et ne 
representent pas necessairement celles du Groupe HAYS plc ou d'une quelconque de ses 
filiales.
La publication, l'usage, la distribution, l'impression ou la copie non autorisee de ce 
message et des attachements qu'il contient sont strictement interdits.

Nous vous informons egalement que nous avons verifie l'absence de virus dans ce 
message mais que, malgre ce controle, nous ne saurions etre tenus pour responsables 
d'eventuels degats occasionnes par un virus non detecte.

This e-mail and any attached files are confidential and intended solely for the use of 
the individual to whom it is addressed.
If you have received this email in error please send it back to the person that sent 
it to you.
Any views or opinions presented are solely those of author and do not necessarily 
represent those the HAYS plc group or any of its subsidiary companies.
Unauthorized publication, use, dissemination, forwarding, printing or copying of this 
email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain any virus 
but we decline any responsability in case of any damage caused by an a non detected 
virus.
**********************************************************************

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

Reply via email to