Decryption

In order to decrypt the RSA-encrypted file, the following command can be used:

$ openssl rsautl -decrypt -inkey privatekey.pem -in message.rsa \
-out message.dec

Now, if the file is read using cat, decrypted plaintext can be seen as shown here:

$ cat message.dec 
datatoencrypt