I will be writing an application that will need to communicate between various servers using SSH and SFTP. I want to avoid having to have to do the SSH key thing manually as it's just tedious. Instead they will be held in a central location and automatically managed.
When introducing a new server to the cluster, what would be the best way to automate the key transfer? Doing it over plain text would not really be secure as if by small chance the key is intercepted then it could be used to later on hack into the system. I was thinking of just using a propitiatory encryption that uses a single key file that has to be the same on each server, then it would transfer the key using this encryption, but this somewhat defeats the purpose. I want to be able to install the program, connect to the web interface, and start managing right away, first step being to add the server to the cluster by specifying one of the other servers.
Also would it be a bad idea to store SSH keys in mysql? I'm thinking so, so instead I could store a unique ID, the it would point to a file path that only root has access to, does this sound good?
Come to think of it, how does SSL handle this? When you go to a secure site how is the "password" transferred before the page is encrypted, and how is it prevented that someone can steal this "password"?
When introducing a new server to the cluster, what would be the best way to automate the key transfer? Doing it over plain text would not really be secure as if by small chance the key is intercepted then it could be used to later on hack into the system. I was thinking of just using a propitiatory encryption that uses a single key file that has to be the same on each server, then it would transfer the key using this encryption, but this somewhat defeats the purpose. I want to be able to install the program, connect to the web interface, and start managing right away, first step being to add the server to the cluster by specifying one of the other servers.
Also would it be a bad idea to store SSH keys in mysql? I'm thinking so, so instead I could store a unique ID, the it would point to a file path that only root has access to, does this sound good?
Come to think of it, how does SSL handle this? When you go to a secure site how is the "password" transferred before the page is encrypted, and how is it prevented that someone can steal this "password"?