4 ms·
"Secure \n\n The generated private key is passwordless by default." That's a bit concerning to me. One would hope that the default behavior would be to put a p
by akerl_ 11y ago
"Secure \n\n The generated private key is passwordless by default."
That's a bit concerning to me. One would hope that the default behavior would be to put a passphrase on the key.
- VeejayRampay 11y agoIt's apparently a requirement for various cloud platforms that the private key doesn't use a passphrase (probably due to automated scripts where the passphrase cannot be provided). See Engine Yard for example (not an exception as far I know): https://support.cloud.engineyard.com/hc/en-us/articles/205413738-Obtain-and-Install-SSL-Certificates https://support.cloud.engineyard.com/hc/en-us/articles/20541... Now I am not saying the situation is ideal or that I condone it, just passing the information along.
- akerl_ 11y agoYea, for things where you're giving the private key to somebody, there's a whole corpus of debate on how useful a passphrase would be even if you could give it to them. For that reason, I'm OK with the default being to passphrase and there being a section of the docs that says "hey, if you need to not have a passphrase for your use case, here's how to strip it off"
- praseodym 11y agoIf an attacker can get access to your (encrypted) private key file, you have other things to worry about. And the passphrase doesn't help against memory-based attacks (e.g. Heartbleed) anyway. A passphrase is mostly a hassle; someone will have to enter it after maintenance or (worse) a power outage.
- Someone1234 11y agoI agree, I find passwords on certificates useful in some circumstances and bothersome in others. I think putting a password on a root CA certificate is just a bother without any REAL security advantages. First off you'll need to enter it on every restart, secondary the raw private key will need to be in memory after that (which is trivial to extract), and lastly if the machine is completely owned anyway, this seems like "rearrange the deck chairs on the Titanic." Now putting a password on your SSH keys? Heck yeah. Otherwise if you forget to lock your machine just once, someone can sit down, open your SSH client of choice and have access to a remote session as "you" without the need for a single password. It might not be unbreakable but it is a nice extra layer of security that buys you time if your laptop gets stolen or similar.
- edwintorok 11y agoif you use that CA to issue a leaf certificate for your server then you don't need the root CA's password or decrypted private key to be in memory all the time, but then of course you make generating self-signed certs more complicate (generate self-signed root CA protected with password, and use that to issue a passworddless leaf certificate).
- akerl_ 11y agoThe fact that you make several valid points doesn't mean keys shouldn't default to having passphrases. Yes, there are attack vectors which having a passphrase doesn't protect against. Yes, passphrases require additional considerations when starting services. No, this doesn't mean they're "mostly a hassle". No, you probably shouldn't default to passphraseless keys.
- ryan-c 11y agoIn at least 99.9% of cases, the an RSA private key used by a service will be stored unencrypted. Would having a default that's the opposite of what nearly all users want be sensible?