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 :
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