I have a public key (modulus and exponent) in Base64 encoded form:
I want to encrypt a text file in LInux using openssl. I have re-written the public key in text file And convert it to .pem file .(just changed the extension) and then execute these commands:
openssl rsautl -encrypt -pkcs -inkey Key.pem -pubin -in s2.txt -out rsa_4096.bin openssl -encrypt -e -base64 -in rsa_4096.bin -out s2encrypted.txt
The problem is that I cannot encrypt the file.
Does anyone have any one idea about this