Poll HN: Do you use SSH certificates (not mere public-key authentication)?
101–110 of 156 posts
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#102Earlier quoted context omitted.
DNSSEC is top-down securing chain, DNSCrypt bottom-up. Each has their pros and cons. Relying on your government to keep you secure can be a valuable factor, depending on your threat model.
Ok, these are words, but again I'm not talking about DNS security here, I'm talking about SSH key distribution. Why would you elect to have your key distribution controlled by the DNS PKI? What's the upside? The downside is, an actor with control over the DNS PKI (there are many of those; see, for instance, every DOJ seizure of a domain) gets a degree of control over your SSH authorized keys. Seems... bad?
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#103Earlier quoted context omitted.
How do you issue client certificates? Do you not worry that the private key needed to issue these can also leak just the same as your personal private key?
By doing a Certificate Signing Request (CSR) from the client. Not sure when it's actually worth doing this extra effort but with the right automation (e.g. with Ansible) it's doable. Never tried this for ssh though. Additional security if you use HSMs.
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#104Earlier quoted context omitted.
How do you issue client certificates? Do you not worry that the private key needed to issue these can also leak just the same as your personal private key?
I have a Raspberry Pi dedicated to generating certificates. It serves the files to my LAN statically via a webserver, and is otherwise heavily firewalled. I don't run any other software on the Pi, so barring an exploit in the webserver, I’m not worried about the signing key getting compromised. Compared to my desktop, where over the years I ran all kinds of stuff from the package manager, downloaded Python scripts an…
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#105We looked into them once at work for our "conventional" SSH infrastructure, but immediately rammed into the wall that a certificate can sign a key, but you can't have a full PKI infrastructure like SSL where certs can sign certs that can sign keys. Without the ability to delegate, the logistics of needing to create an absolutely centralized authority to do the useful things we wanted to do within the organization rai…
We set up an ssh cert signing server using Hashicorp Vault [1] so we didn't have to keep rotating keys across a fleet of boxes we couldn't always reach. It was cool but it made me nervous to centralize something like that. Cert sigantures expired after 30 min so leaks were not a problem. It was backed by DynamoDB and the keys were in memory so everytime the containers rebooted someone would have to manually unseal be…
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#106The real thing that gets me though, is how to deal with different users needing access to different subsets of machines. That's where I miss Kerberos.
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#107We looked into them once at work for our "conventional" SSH infrastructure, but immediately rammed into the wall that a certificate can sign a key, but you can't have a full PKI infrastructure like SSL where certs can sign certs that can sign keys. Without the ability to delegate, the logistics of needing to create an absolutely centralized authority to do the useful things we wanted to do within the organization rai…
> On the other side, as a personal user of SSH with basically one person to worry about, the effort of setting up a certificate seems like just a waste versus the existing key-based infrastructure; I don't understand at all what attack it would prevent or what convenience it would provide for the cost of learning it. The main benefit I get from using SSH certs at home is expiration. Before, I always had a niggling fe…
> 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.
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#108Doing 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.
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#109What's the difference between a certificate and a public/private keys?
Certificate is short lived and signed on the fly for when you need it. The server trusts your SSH CA, and you can ask it to sign any private key you want, with a ttl. So you get extra security (credentials are dynamic and short -lived, and also per-user if needed) and lower maintenance because you only have the SSH CA public key to setup on all machines and that one needs less rotation/updates than public keys.
This is hardly "lower maintenance" than pushing updates to the authorized_keys across servers.
Or having servers poll for such file.
Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?
#110I 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.
doesn't this approach run into caching problems?