Poll HN: Do you use SSH certificates (not mere public-key authentication)?
141–150 of 156 posts
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#142Earlier quoted context omitted.
How is this more secure than simply creating new certificates and replacing the old ones is the authorized_keys files? > I only have to worry if my machine is secure in the present No. If a host has been accessed by an attacker due to an exfiltrated key in the past it's tainted forever.
> How is this more secure than simply creating new certificates and replacing the old ones is the authorized_keys files? It’s more convenient for me than updating authorized_keys. When I build a new machine, for example, I first generate a new SSH keypair on the machine. Then I copy the server and user public keys to the CA. Once I drop them in the right folder, certificates get generated automatically and served ove…
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#143Earlier quoted context omitted.
It's not "strictly" more because you reduce the attack surface of your leaf certs through expiration, etc.
What attack does that prevent? If the leaf certs are compromised, then so is the server, and it is already game over.
This particular attack took down my former organization once.
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#144Earlier quoted context omitted.
I don't know that I disagree with the broader point here, but long-lived certificates are what you don't want.
Not GP, but I'd assume they talked about the root cert? You don't want to roll out a new one every other week ;-)
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#145Doing this without something like Vault is very difficult. Vault is designed to provide similar guarantees to an HSM (it's a service designed to make keys usable but not exfiltratable ), and that's essential for any long-lived certificates.
Vault is not able to provide guarantees similar to an HSM.
But they are both systems intended to provide secure storage of key material with policy-based access to that key material. As an SSH CA, you can configure Vault to sign SSH pubkeys but never divulge the key material. Depending on your threat model, it might get you what you want for this use-case, but you should definitely be aware of the limitations of Vault's security model.
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#146Earlier quoted context omitted.
I just store my SSH key in my Yubikey and then I can SSH from any computer that has SSH and GPG installed. Gets rid of the "generate and sign a key that then sits on that computer that might not be fully trusted" step...
not as flexible, as it has more dependencies, but you can make it work without gpg as well: https://developers.yubico.com/yubico-piv-tool/YKCS11/
Sadly, the Windows GPG build and Win32-OpenSSH don't talk to the agent the same way, so it doesn't work there. (AFAIR Windows GPG - and Putty - uses "Assuan" while Win32-OpenSSH uses named pipes just like *nix SSH/GPG do.) I don't think PIV would help that though :(
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#147I store my authorized_keys in DNS TXT records, that are DNSSEC signed, with a validating resolver on the box. I then just use "/usr/bin/hesinfo %u ssh" as my AuthorizedKeysCommand in OpenSSH. I wrote a little tool that allowed you to "#include" other DNS records etc, but "hesinfo" is generally easily installable/available so it's just easier.
Please write a blog on this
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#148Earlier quoted context omitted.
Please write a blog on this
A blog on this.
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#149I store my authorized_keys in DNS TXT records, that are DNSSEC signed, with a validating resolver on the box. I then just use "/usr/bin/hesinfo %u ssh" as my AuthorizedKeysCommand in OpenSSH. I wrote a little tool that allowed you to "#include" other DNS records etc, but "hesinfo" is generally easily installable/available so it's just easier.
Yes. Hesiod is safer than DNS TXT once secured by DNSSEC, because I envision mass blocking of DNS TXT in the near future.
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#150Earlier quoted context omitted.
I would love a HOWTO link. Also, can the DNS server be public facing? Any issues with the authorized keys being public (AFAICT there isnt but i am not a security expert)?
Unless your keys are generated with low entropy (like the Debian CVE-2008-0166), publishing the public key file should not be an issue; that's from a cryptographic pov. & as bombcar said, obviously if you ignore "unknown host" warnings, you can be tricked into logging into an attacker-controlled machine. Often key files also contain "user@host" for the user&host the key was generated by&on. This identifier is then le…