| ▲ | Nnnes 3 hours ago | |
In theory, having your CA private keys on the same side as sshd wipes out the security benefits of using certs so this kind of setup is usually recommended against (you would ideally generate the CA certificate on a device that doesn't connect to anything except to sign keys, like a hardware security key as you mentioned, or at least somewhere that isn't accessible by SSH). In practice, your client side devices may well be at more risk of loss due to theft or similar than your server is of being broken into, and it's pretty convenient to just scp your public keys over to sign them. I can reach my own CA private keys by SSH, just not via public IP address. Here's a good resource for anyone wanting to get started with SSH certs: https://free-pmx.org/guides/ssh-certs/ | ||
| ▲ | jamesog an hour ago | parent [-] | |
I'm using a Yubikey as my CA which works nicely. I don't need to worry about having a machine that can be compromised. https://jamesog.net/2023/03/03/yubikey-as-an-ssh-certificate... | ||