I have a question regarding the public key encryption. I have the public key of X and want to encrypt the message in the file message.txt using the public key of X stored in the file X.pub using openssl. I'm currently using virtualbox. I'm not sure how to import the public key of X. Any help is much appreciated.
Thanks.