I am connecting my computer located at my home to a remote server.
To communicate with the server, I use a config file that contains my private and public keys and a passphrase. My code reads the config file and sends a message containing the signature from the private key, the public key and the passphrase.
Now, I would like to run my code on the Cloud, for example AWS. I suppose it is not safe to store the config file on AWS, so what would be the correct way to connect safely from AWS to the remote server ?