3 ms·
In the '-nodes' section, it mentions not having a password on the private key. Can someone suggest a "secure, automated mechanism of providing the private key
by zdw 12y ago
In the '-nodes' section, it mentions not having a password on the private key.
Can someone suggest a "secure, automated mechanism of providing the private key passphrase" as they recommend, if you wanted to use a password on it?
- garrettr_ 12y agoBest practice would be to use an HSM to store the key. It provides the usability benefits of an unencrypted private key with strong guarantees about the security of that key. It's worth noting that the security benefits of encrypting the private key are limited in most cases. Whenever the server restarts, the private key is decrypted and stored in memory, so an attacker who can exploit your web server would be able to access it anyway. Some attackers might not be able to access memory (e.g. exploits in a web application), but in that case you should be able to use standard file permissions to protect the key. Encrypting the key would have more benefit if you are planning to store it in places other than the server it is used on, and/or transfer it across a network. In that case, it's probably best to carefully consider your threat model and security requirements, rather than solely relying on the default encryption provided by OpenSSL. For example - do you have the discipline do use a strong, unique passphrase on that key? If not, encrypting the key doesn't provide much protection against a determined attacker. Is stretching performed to slow down a brute force attacker? And so on...
- nailer 12y ago+1. I believe HSMs may even be required for CAs.
- nailer 12y agoFor common 'developers making cloud apps' scenario, the best thing you should do is stay passwordless, but use an embedded appliance separate from your server layer. Eg, if you currently do HTTPD all the way to your server, you have n copies of your private key on full Linux instances - you can reduce that substantially by using an HTTPS gateway. If you switch to, say, a load balancing HTTPS proxy appliance (like Amazon's ELB or Modulus' Go-based load balancer) you store your private key in one place, and that one place has far fewer points of attack than a traditional full OS.