Here is the case:
1. 'A' will send the public key to 'B'. Now 'B' will encrypt a file (secret.txt) with public key of 'A'
2. 'A' will receive the encrypted (secret.txt) from 'B'
3. 'A' will decrypt the encrupted file using his private key
Appreciate if you could give the working example using openssl or any any command in linux.