PKCS7 signature verification fails

2007-02-07 Thread Jean-Claude Repetto
Hi, I am trying to use openssl to sign documents and store detached signatures in PKCS7 format. First, I sign the document : openssl smime -sign -in document.txt -out document.txt.sign -signer certs/jcr.crt -certfile certs/ca.crt -inkey private/jcr.key When I check the signature, it is OK :

Re: EVP Envelope & PKI Confusion...

2007-04-03 Thread Jean-Claude Repetto
Usman Riaz wrote : I want to use PKI to encrypt some data and send it to the customer to be decrypted. With my limitied knowledge about PKI, the data can be encrypted using "private key" and then lateron that encrypted data could be decrypted with the "public key". No, you encrypt