Live data from Hacker News

Poll HN: Do you use SSH certificates (not mere public-key authentication)?

news.ycombinator.com

1–10 of 156 posts

Poll HN: Do you use SSH certificates (not mere public-key authentication)?

#1
Do you use SSH certificates for work and/or personal SSH logins?

I have just switched, for my personal machines, but dealing with the CA keys is a royal pain.

What on earth do people to do keep their CA keys accessible but secure?

(You can choose multiple options below)

Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?

#3
I've used public-key basically forever.

I have wanted to go that step further and implement certificates for a good few years now, I absolutely see the value, no question about it (i.e. no more out of date authorized_keys files, no need to even install authorized_keys files in the first place, the list goes on).

I wish YubiKeys were more flexible in allowing SSH certificates to be hosted on them (currently can only host X509 type). Because if I could use a Yubi for SSH certificate signing I would have already been using certificates ! (Yes I know, theoretically you can do it with GPG keys, but frankly that's a PITA with many issues).

My current plan is to take inspiration from this : https://smallstep.com/blog/diy-single-sign-on-for-ssh/

Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?

#4
post #2

Infos about how to use them would be great.

I find this quick introduction to be quite helpful if you want to learn the basics: https://jameshfisher.com/2018/03/16/how-to-create-an-ssh-cer...

If you don't know about them, you can probably answer "no" in this poll :)

Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?

#7

I've used public-key basically forever. I have wanted to go that step further and implement certificates for a good few years now, I absolutely see the value, no question about it (i.e. no more out of date authorized_keys files, no need to even install authorized_keys files in the first place, the list goes on). I wish YubiKeys were more flexible in allowing SSH certificates to be hosted on them (currently can only h…

You can use this great-but-also-terrible system to do X509 certificate validation with SSH: https://github.com/mjg59/ssh_pki Maybe after some deeper security analysis this idea could help you work around the limitations of Yubikey's hardware.

However, if the author of a piece of security software tells me something is a bad idea, I tend to accept that, especially if that author is mjg59.

Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?

#8
post #2

Infos about how to use them would be great.

See the link I just posted in my reply, i.e. https://smallstep.com/blog/diy-single-sign-on-for-ssh/

Edit: parent comment got corrected. Old comment left below for reference.

Note that this is a blog about X509 certificates, not SSH certificates! That blog page does link to https://smallstep.com/blog/diy-single-sign-on-for-ssh/ which is about SSH certificates.

Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?

#9

What's the difference between a certificate and a public/private keys?

You add the intermediate key to config for trust. You do not need authorized_keys files for each user. Good for team and central management and faster key rotation but then needs trusted intermediate authority which is secure. No password or key rotation on machine itself which is good if you have a lot of machines.

Re: Poll HN: Do you use SSH certificates (not mere public-key authentication)?

#10

What'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.

Post reply on HN