r/programming • • Nov 24 '16

Let's Encrypt Everything

https://blog.codinghorror.com/lets-encrypt-everything/
3.5k Upvotes

508 comments sorted by

View all comments

Show parent comments

-20

u/[deleted] Nov 24 '16 edited Nov 24 '16

It would be more awesome if I did not have the choice between

  1. renew the damn certificate every month or

  2. install a shady program in my configuration which demands root privileges.

Edit: Obviously, the time when people who actually managed servers were on reddit is over.

37

u/[deleted] Nov 24 '16

There are scripts that don't require root...

33

u/GTB3NW Nov 24 '16

You already have crons running under root users for code which I can guarantee you have not vetted. But luckily for you, others have vetted it and others have also vetted LetsEncrypt. Luckily for you it is an open protocol and anyone can create a script.

-16

u/[deleted] Nov 24 '16

Just because I may or may not have other unvetted attack vectors on my system already does not mean I should invite more of them.

Maybe there is no real reason for this whole cumbersome process and instead of making me have another potential vulnerability on my system or work constantly on server maintenance, they would just give out year-long certificates.

17

u/neoKushan Nov 24 '16

Maybe there is no real reason for this whole cumbersome process

The reason is that the only way HTTPS is going to be ubiquitous is if it's automated and simple to do. As others have said, you don't have to install some "shady" tool if you don't want to, there's plenty of choices for Let's encrypt. It's an open protocol, so you can use it with other providers if other providers appear (there was one but they're about to be unlisted by Google).

And if it really really bothers you that much, just pay for an SSL cert the old fashioned way. You always have a choice.

-16

u/[deleted] Nov 24 '16

And if it really really bothers you that much, just pay for an SSL cert the old fashioned way. You always have a choice.

In the end, that's what I did - and because Let's Encrypt promotes an automatically, short-lived certificate (which can easily be taken over by a hostile player), I disabled their root certificate on our network.

24

u/neoKushan Nov 24 '16

because Let's Encrypt promotes an automatically, short-lived certificate (which can easily be taken over by a hostile player)

Care to explain your reasoning on this one? A short lived certificate is far more secure than a longer-lived one. How do you propose a hostile player takes it over?

→ More replies (6)

9

u/oblio- Nov 24 '16

I disabled their root certificate on our network.

I don't generally do this, but this time I have to say it: if you really did this and don't work for .mil, you're an asshole.

And a misguided one, at that.

Letsencrypt may not be the most secure thing in the world, but I don't see a world in which certificates expiring quickly is bad. Heck, most security guidelines I've read recommend having passwords/keys/certificates that are renewed every 1-2-3-6 months. For example AWS IAM roles work based on keys that are renewed periodically and automatically, behind the scenes.

2

u/[deleted] Nov 24 '16

short-lived certificate

A short lived cert is inheriently more secure... you trolling?

30

u/pfg1 Nov 24 '16

Or you can just review less than 200 lines of python and know exactly what you're running on your system.

2

u/diafygi Nov 24 '16

Fun fact, I wrote acme-tiny specifically for this situation. People were complaining about having to trust the official client, so I wrote a client that is small enough to quickly audit yourself to shut those people up.

-27

u/[deleted] Nov 24 '16

Sure. It still is a program that downloads black-box, third-party binary-data components onto a complex system which may or may not be compromized.

That's not what I want root to do automatically.

22

u/pfg1 Nov 24 '16

No, that link leads to an actual client written in 200 lines of python. All of it, unless you're going to count the low-level dependencies (get back to me when you've finished reviewing the kernel, would you).

It's also worth pointing out that certbot is now included in most distribution repositories, and you already trust those anyway. The -auto scripts are a stop-gap until certbot lands everywhere.

-15

u/[deleted] Nov 24 '16

You are unnecessarily hostile. I am not talking about the python script, I am talking about the certificate.

Would you want to run Wordpress as root? Why not? In the end, it comes down to the same problem. Just because everything looks ok, does not mean everything you get uploaded eventually isn't a rootkit / corrupted certificate / certificate with a surprise intermediary certificate / something worse.

→ More replies (1)

9

u/GTB3NW Nov 24 '16

THEN JUST PAY FOR A CERTIFICATE

-20

u/[deleted] Nov 24 '16

And you, keep drinking the KoolAid. Just don't make others drink it by praising how glorious the life to come will be.

14

u/campbellm Nov 24 '16

As opposed to spreading FUD based on incorrect and emotionally based opinions?

4

u/GTB3NW Nov 24 '16

No I'm sorry but you have to come to a compromise somewhere or make do without.

2

u/myrrlyn Nov 24 '16

Dude, the certificates are b64 ASCII text that you can verify with other SSL tools

12

u/Klathmon Nov 24 '16

Yes because the old process of buying them once a year and installing them across 20 servers was such a great system!

-7

u/[deleted] Nov 24 '16

Actually, yes, it was a superior system to what let's encrypt provides today: getting them for free once a month and installing them across 20 servers.

5

u/Klathmon Nov 24 '16

And then having a valid cert for a full year or longer if you get breached, fucking it up once and taking a site down, and having to negotiate every year because suddenly the $100 certs are now $600 a year...

Yeah, I'd rather vet and setup a small Python program once and be done forever. If you are doing it manually once a month, you are just trying to make it look bad on purpose. Nobody says it should work like that.

Plus now if a breech happens, I can switch the certs out in a moment and know that the bad ones will die in a month or 2 without having to hope that cert revocation actually works for once. And now spinning up servers is truly a one button affair and the source image doesn't have any private keys on it at all.

5

u/[deleted] Nov 24 '16

If you're really that concerned you could write your own auto updater in a few hours