News for hackers. Stuff that matters.
Re:Let’s Encrypt in the spotlight by ams6110 on Monday July 03, 2017 @07:45PM (#14692321)
Like with a lot of tech trends, I seem to be one of those people who doesn't "get" the excitement about letsencrypt.

I don't find the process of generating a CSR and submitting it to a CA for signing to be more complicated than setting up letsencrypt. In fact I think it's quite a bit easier.

Re:Let’s Encrypt in the spotlight by jldugger on Monday July 03, 2017 @07:59PM (#14692404)
It's free, and automated so you don't run into TLS outage post-mortems where the question "why does the cert expire at christmas anyways?" is "Because it expired same time last year and during the emergency repair we used the default lifetime period of one year."
Re:Let’s Encrypt in the spotlight by thinkMOAR on Tuesday July 04, 2017 @04:00AM (#14694295)
Why is your LE broken? 'because 1 of the 12 automated renewals last 3 years (to compare vs 3 year paid certificate at 4 euro) failed for reason X, Y or Z'. Be it them being down, be it your uplink being down, be it your dns malfunctioning, be it another massive spamhaus-sized-internet-disrupting-ddos. There are plenty of ways a LE renewal can go wrong, and having this 'chance' occur 4 times a year, i find bad practice.

Just because something is free, doesn't make it better. And having 12x more points in same timeframe where the automated renewal can fail, certainly doesn't make it better statistically.

Also i grew up with the notion, 'nothing in the world is free, except the sun'. So i wouldn't be surprised if they will start to monetise this LE user base at some point in time.

Re:Let’s Encrypt in the spotlight by majewsky on Tuesday July 04, 2017 @05:53AM (#14694727)
> Be it them being down, be it your uplink being down, be it your dns malfunctioning, be it another massive spamhaus-sized-internet-disrupting-ddos.

I have my certbot set to run once a week with --keep-until-expiring, so it will try to issue a new certificate when the old one's remaining validity is less than a month. I could also set it to run daily, because it doesn't actually do anything if the cert is still valid for long enough. But a week works on my (admittedly small) scale.

So unless you're experiencing a multi-week DNS malfunction or multi-week DDoS (in which case you're in some deep shit anyway), you should be fine.

Re:Let’s Encrypt in the spotlight by thinkMOAR on Tuesday July 04, 2017 @09:39AM (#14695780)
So you prefer to have something (which most people have ) with root privileges to pull data unattended, 52 times a year, from some 3rd party host via python then to manually do (if you wanted ONLY once in 3 years) something once a year manually?

Is this really what i am reading?

Re:Let’s Encrypt in the spotlight by jldugger on Tuesday July 04, 2017 @12:46PM (#14696884)
Certbot isn't the only acme client in town. I use Chef personally: https://github.com/schubergphilis/chef-acme/

Professionally, it's not once every three years, it's that x the number of clients we host. Which is a lot. Many are clamoring for LE, because it's within their budget: $0. So yea, I want to automate that.

Re:Let’s Encrypt in the spotlight by majewsky on Tuesday July 04, 2017 @05:27PM (#14698407)
I have another cronjob that fits the same description, runs daily, and it's called "unattended security updates". Just saying.

Edit: Also, it's a persistent myth that certbot needs to run as root. It most certainly doesn't on my servers.

Re:Let’s Encrypt in the spotlight by jldugger on Tuesday July 04, 2017 @12:32PM (#14696776)
> There are plenty of ways a LE renewal can go wrong, and having this 'chance' occur 4 times a year, i find bad practice.

Fortunately, we can also discard some of the high stakes gambles we take to avoid cert costs. Your cert lives for 90 days. Why wait until day 89 to renew? It's certainly not to avoid the expense. The LE defaults renew at day 70. That gives you 20 days for transient failures to resolve themselves, so that's a concern you can dismiss out of hand. And if you don't think that's enough time for ops team to work out whatever problem they have, you can configure your tooling to renew sooner.

Yes, renewals every 70 days introduces a 5th renewal every year, but IMO the hardest and most important renewal is the first one, and you might as well take it sooner than later.

TANASTAAFL is a thing, but even if the only lasting impact LE has is to arm-twist CAs into a commonly accepted API, that's still a win in my books for competition and near-frictionless competition. Anyone seen the Comodo API? And how it compares to the Symantec API?

Re:Let’s Encrypt in the spotlight by nickpsecurity on Monday July 03, 2017 @08:46PM (#14692651)
"I don't find the process of generating a CSR and submitting it to a CA for signing to be more complicated than setting up letsencrypt."

Remember there's multiple benefits that Lets Encrypt claims. A few that come to mind is it's free, transparent instead of shady, and has this tooling ecosystem forming. The free and non-shady parts are the most compelling advantages over prior, commercial CA's. On top of that, it's a public-benefit corporation with board members who have a history fighting against abuses of online privacy. You therefore have more assurance that the tooling you're investing time in might not get more evil or low-quality at the rate another offering might be if driven only by corporate greed.

Re:Let’s Encrypt in the spotlight by hinkley on Monday July 03, 2017 @11:18PM (#14693274)
I didn't find CSR creation to be that complicated either, but a lot of people on my team were intimidated by it when we were doing a code signing app.

On the plus side, I was aware of every cert that got set up and several of them were going to be created improperly or for sketchy reasons.

Re:Let’s Encrypt in the spotlight by thaumaturgy on Monday July 03, 2017 @10:39PM (#14693126)
It depends on your use case a bit. I'm responsible in some way for a small pile of other people's domains; for those that I do all the hosting on, I get to have SSL-by-default totally effortlessly thanks to LetsEncrypt.

I have a node that can log in to other nodes, enumerate the domains they host, and then go through the LetsEncrypt authentication process for every domain on that node, retrieve the new certificate, copy it up to that node, and kick any services that need to be kicked. It runs once a day to handle renewals, or I can run it manually any time the hosting on a node changes.

I haven't had to think about SSL for quite a while now and that's fantastic.

If you're only responsible for one or a few domains, I can see how that wouldn't seem like a big deal.

Re:Let’s Encrypt in the spotlight by pornel on Monday July 03, 2017 @07:58PM (#14692398)
Setting up LE requires you to do/learn a new process, so it's expected that it looks more complicated than the process you already know.

But once you get past that, it's soooo much easier. All my domains are renewed via a cronjob. I don't have to do anything.

Re:Let’s Encrypt in the spotlight by bigiain on Monday July 03, 2017 @10:27PM (#14693071)
… except ensure the cron job runs reliably on a timescale of years…

(Not that I think cron is unreliable - I only recently stopped getting monitoring summary email from a cron job I set up in '99 or '00 on a server that'd been migrated at least 3 times while I still worked there, and who knows how many times after I left in '08, I stopped getting the mail in '14 or '15... But I've also had cron jobs silently die when OS updates break perl/python/shell scripts or permissions - looking at _you_ OS X...)

Re:Let’s Encrypt in the spotlight by Vendan on Monday July 03, 2017 @10:42PM (#14693138)
I personally think it being a cron job is a bad idea. I do my LE cert renewal in the web server itself, so the web server would have to crash for the LE cert renewal to not run.
Re:Let’s Encrypt in the spotlight by Xoros on Monday July 03, 2017 @10:58PM (#14693204)
LE send you a mail if you have a cert going to expire. Easy to spot if something went wrong in your cron tasks (not that you can totally rely on automated task of course, but it's another layer of security)
Re:Let’s Encrypt in the spotlight by majewsky on Tuesday July 04, 2017 @05:54AM (#14694734)
Before someone complains that LE is going to spam you with expiry notices: If you set up your process right (i.e. certbot cronjob with --keep-until-expiring), certs will be renewed early enough that the mail reminder never triggers unless there's an actual problem.
Re:Let’s Encrypt in the spotlight by Xoros on Tuesday July 04, 2017 @09:10AM (#14695635)
Yes (thank you for clarifying this point for others), the first mail is sent a month before expiration, and the certs are renewable after a month.

So with a weekly cron (for example) you should never get any mail from LE. That's why I meant. Thanks again.

Re:Let’s Encrypt in the spotlight by Vendan on Wednesday July 05, 2017 @08:14PM (#14707246)
It still seems wrong to do it that way. Plus, the TLS-SNI-01 challenge is just such a clean way of handling it, no need to have a special path handling or anything. Server up and running? Then my cert is being renewed, assuming LE isn't broken at least...
Re:Let’s Encrypt in the spotlight by riffic on Monday July 03, 2017 @07:56PM (#14692386)
The magic isn't Let's Encrypt per se, but the ACME protocol seems to be something traditional CAs should be getting behind.
Re:Let’s Encrypt in the spotlight by kittiepryde on Monday July 03, 2017 @08:10PM (#14692471)
They are! https://letsencrypt.org/2017/06/14/acme-v2-api.html

From the URL:

Second, ACME v2 was designed with additional input from other CAs besides Let’s Encrypt, so it should be easier for other CAs to use. We want a standardized ACME to work for many CAs, and ACME v1, while usable by other CAs, was designed with Let’s Encrypt in particular in mind. ACME v2 should meet more needs.

Re:Let’s Encrypt in the spotlight by landryraccoon on Monday July 03, 2017 @07:55PM (#14692383)
I'm very excited that Letsencrypt is free.
Re:Let’s Encrypt in the spotlight by tokenizerrr on Monday July 03, 2017 @09:14PM (#14692779)
I just have an ansible role which runs against a server and SSL gets set up 100% for free. It's wonderful. One time time investment to write the ansible role, and now it takes like 5 seconds to enable for any server I'd like.
Re:Let’s Encrypt in the spotlight by toomuchtodo on Monday July 03, 2017 @09:19PM (#14692805)
So that's the provisioning process at server setup/instantiation; how do you handle the 90 day renewal?
Re:Let’s Encrypt in the spotlight by tokenizerrr on Monday July 03, 2017 @09:26PM (#14692837)
The ansible role installs my ACME client of choice (https://github.com/lukas2511/dehydrated), invokes it once, and adds a cronjob.
Re:Let’s Encrypt in the spotlight by gtf21 on Tuesday July 04, 2017 @05:04AM (#14694569)
We do the same and I found it a breeze, I even have some hooks which talk to the cloudflare API to setup the txt records for verification.
Re:Let’s Encrypt in the spotlight by toomuchtodo on Monday July 03, 2017 @09:40PM (#14692881)
Thanks!
Re:Let’s Encrypt in the spotlight by riffic on Monday July 03, 2017 @09:26PM (#14692836)
I assume the GP's ansible role writes a crontab entry to perform the renewal.
Re:Let’s Encrypt in the spotlight by bryanlarsen on Monday July 03, 2017 @11:20PM (#14693283)
If the acme client is integrated into your web server, then there's literally zero effort to use let's encrypt.

Either use Caddy (1) or integrate with nginx, traefik, gke or any other kubernetes ingress server via kube-lego (2).

1: https://caddyserver.com/ 2: https://github.com/jetstack/kube-lego

Re:Let’s Encrypt in the spotlight by dfcowell on Monday July 03, 2017 @11:58PM (#14693447)
The nginx ingress controller with kube-lego is officially my new favourite thing. Got it up and running on three clusters I manage a month or so ago and haven't looked back.

So great to just push an ingress manifest and 10 minutes later suddenly get redirected to HTTPS.