r/programming • • Aug 03 '16

Why aren’t we using SSH for everything?

https://medium.com/swlh/ssh-how-does-it-even-9e43586e4ffc#.frpyqvaaf
194 Upvotes

71 comments sorted by

View all comments

Show parent comments

1

u/EntroperZero Aug 04 '16

What could we do to make it easier for end users? I think most of the trouble comes from it being kind of a pain in the ass to manage certificates in a browser.

3

u/[deleted] Aug 04 '16 edited Aug 04 '16

A hardware token that holds your certs and lots of standardized requirements like /u/_zenith mentioned.

I will say that the DoD does a lot of this with CACs, handles the loading and authentication in a standardized way, and then is able to do authorization using the person's identity.

A few downsides to this:

  • Managing hardware certs is another level of expense.

  • Managing browsers and OS support is a burden on IT and will prevent some users from using the newest browsers or even the ones they want to use. That's why a lot of DoD people were stuck on old IE versions for a while

  • Developers will absolutely pitch a fit if you require them to do PKI auth before every site. I've seen it happen. The best way to handle it is to build lots of tooling and platform that allows it to be handled easily at either a proxy layer or at a proxy webserver layer like nginx, so they don't have to implement it all from scratch every time or maintain their own libraries for each different framework.

  • Again, lots of proxies and load balancers like AWS' ELB don't forward client certificates, so you're shit out of luck if you wanted to use those

  • As an attacker, it's super easy to steal and use people's software certs. Either copy their Mozilla profile or extract their certs from the Windows cert store using something like mimikatz and now you get effortless authentication to literally every site that uses certs. Even for CACs and the like, browser pivoting in mature intrusion tools can let you run free around their web apps while the user is logged in.

In short, you need lots of buy in and investment in your IT and engineering departments to support it. The government can throw that can of time and money at it, but sometimes it's not worth the cost for a private company.

1

u/_zenith Aug 04 '16

You'd need a standard. Everyone does it differently at the moment.

The ideal case would be to use your phone or a hardened USB device for key storage, and for browsers (and other applications) to have a standard way that they asked for keys from that storage and, highly preferably, also proving that they needed the key they asked for, and possibly also performing any necessary operations involving the private key so that you don't have unnecessary key export.

But first, everyone would need to agree on something, otherwise we'll have the same old tired situation familiar to us from XKCD

2

u/EntroperZero Aug 04 '16

The ideal case would be to use your phone or a hardened USB device for key storage

I absolutely agree with this, I've been saying for years that we all have cell phones with USB and Bluetooth, why can't we use them the same way the DoD uses CACs? But no one seems interested in implementing this with a nice interface in the browser.

1

u/[deleted] Aug 04 '16

SQRL has been built from the ground up to be usable by anyone. I hope it takes off.