smime encryption
First, I create a private/public key
openssl genrsa -out c.key 2048
Then, I extracted the public key because I want to encrypt a file using smime and this public key
openssl rsa -in c.key -pubout -out publickey.pem
But, this command doesn't produce file.enc
openssl smime -encrypt -in file.txt -out file.enc publickey.pem
plz, can anyone tell me what's the matter?
|