News for hackers. Stuff that matters.
Re:Get HTTPS for free by diafygi on Saturday January 30, 2016 @01:14PM (#11002961)
This is my project, happy to answer questions or receive feedback. The goal was to let people experiment with getting a Let's Encrypt cert before the had to install anything on their server. The static/unhosted property is to strengthen trust that nothing shady is going on here.
Re:Get HTTPS for free by mdip on Saturday January 30, 2016 @07:28PM (#11004562)
Just used it successfully (with some changes at the bottom -- converting the certificate so I could import it to Windows) to get a cert for my IIS web server.

Worked like a champ!

Re:Get HTTPS for free by AndyMcConachie on Saturday January 30, 2016 @04:34PM (#11003863)
Once again I find myself looking at code you wrote and appreciating it. If we ever meet in real life I owe you some beers.
Re:Get HTTPS for free by diafygi on Saturday January 30, 2016 @04:43PM (#11003893)
Thanks! Make sure you use https everywhere :) Also, my co-founder would shoot me if I didn't mention our startup is hiring.
Re:Get HTTPS for free by masthead on Sunday January 31, 2016 @01:26AM (#11005484)
Nice promo there! I will never be paying for the certificates again.
Re:Get HTTPS for free by pytrin on Saturday January 30, 2016 @01:43PM (#11003113)
Does this support wildcard subdomains? If not, would you be willing to add such support?
Re:Get HTTPS for free by toupeira on Saturday January 30, 2016 @01:47PM (#11003126)
This uses LetsEncrypt which doesn't support wildcard certificates yet:

> Will Let’s Encrypt issue wildcard certificates?

> We currently have no plans to do so, but it is a possibility in the future. Hopefully wildcards aren’t necessary for the vast majority of our potential subscribers because it should be easy to get and manage certificates for all subdomains.

From https://community.letsencrypt.org/t/frequently-asked-questio...

Re:Get HTTPS for free by pytrin on Saturday January 30, 2016 @02:08PM (#11003233)
Unfortunately, that doesn't work with dynamic subdomains (i.e, domains assigned and edited by users). Hopefully they'll change their minds in the future - until then, I'll be paying for a commercial certificate
Re:Get HTTPS for free by dyladan on Saturday January 30, 2016 @02:18PM (#11003282)
You could always script the letsencrypt API and generate a new certificate on each subdomain generation.
Re:Get HTTPS for free by pfg on Saturday January 30, 2016 @02:34PM (#11003345)
That's correct, however there are rather aggressive rate limits in place right now that would make this hard for your typical SaaS-on-a-subdomain deployment if you have more than ~5 new signups per week. Plus, if SAN support is a concern, wildcards are preferable too.
Re:Get HTTPS for free by jrochkind1 on Saturday January 30, 2016 @03:20PM (#11003559)
The rate limits[1] I see documented are 500 registrations per 3 hours. That's a lot more than ~5 new signups per week. More like ~16800 new signups per week, no?

[1] https://community.letsencrypt.org/t/rate-limits-for-lets-enc...

Re:Get HTTPS for free by pfg on Saturday January 30, 2016 @03:43PM (#11003645)
Certificates/Domain is the one that would affect this use-case the most. It's set to 5 certificates per domain per week. More specifically, it's certificates per TLD+1, so one certificate for customer1.example.com and one for customer2.example.com would put your rate limit for example.com at 2, thus limiting you to 5 signups per week unless you spread your SaaS over multiple TLD+1's.
Re:Get HTTPS for free by zaroth on Saturday January 30, 2016 @04:52PM (#11003934)
Wildcards are important and LE should support them, but it will take perhaps some more work on the validation rules. Dynamic subdomains are powerful stuff, and even a real-time automated cert request is a poor substitute for just having the wildcard. If you're doing sub-domain per customer, the wildcard cert is definitely preferred particularly if you're proper multi-tenant all the way down the stack.
Re:Get HTTPS for free by jrochkind1 on Monday February 01, 2016 @08:09AM (#11011507)
Ah, I didn't catch that this limit was applied to the TLD+1.

Weird, why allow a generous 500 registrations per 3 hours, while limiting certs per domain like this? Anyone have a link to anywhere that letsencrypt explains what they are trying to do here?

Re:Get HTTPS for free by pfg on Sunday February 07, 2016 @08:29AM (#11052754)
Registrations don't cause a lot of load. They're essentially just one row in a table.

Certificates have to be signed by a Hardware Security Module with limited capacity. OCSP messages have to be signed every couple of days for the lifetime of a cert by the same HSM. This is significantly harder (and more expensive) to scale.

Re:Get HTTPS for free by derefr on Saturday January 30, 2016 @04:45PM (#11003900)
How do they define a TLD? What's, for example, .co.uk to them?
Re:Get HTTPS for free by pfg on Saturday January 30, 2016 @05:07PM (#11004007)
They use the Public Suffix List[1].

[1]: https://publicsuffix.org/

Re:Get HTTPS for free by jrochkind1 on Wednesday February 03, 2016 @11:48PM (#11032057)
Hmm, are you sure they do? Including the "PRIVATE" section? Any docs from them saying this, and clarifying whether this includes the PRIVATE section?

Because if so, that would seem to make the certs-per-domain limits not so much of a problem. If you own example.com, and have customers using sub-domains at a.example.com, b.example.com, etc -- that would seem to make example.com suitable for inclusion on the "PRIVATE" section of the list.

No?

"owners of privately-registered domains who themselves issue subdomains to mutually-untrusting parties may wish to be added to the PRIVATE section of the list... Requests for changes to the PRIVATE section must come from the domain owner."

https://publicsuffix.org/submit/

And indeed there are a few dozen random .com, .net, etc domains in the PRIVATE section. For instance `github.io` is listed there.

If that's the way for SaaS providers to get free certs from letsencrypt for their customers at customername.provider.com, I'd expect to see the listings in the PRIVATE section skyrocket.

Re:Get HTTPS for free by pfg on Sunday February 07, 2016 @08:25AM (#11052741)
Yes, private suffixes are included. It has already caused a spike in new PSL submissions[1].

You're right about this being rather easy to bypass, but the main goal is probably not to mitigate against abuse but rather prevent buggy automation scripts stuck in some kind of infinite loop from DDoSing them.

[1]: https://community.letsencrypt.org/t/dyndns-no-ip-managed-dns...

Re:Get HTTPS for free by tokenizerrr on Saturday January 30, 2016 @04:53PM (#11003942)
A TLD. They define domain as anything the average user can purchase.
Re:Get HTTPS for free by asddubs on Saturday January 30, 2016 @07:16PM (#11004505)
Oh that's a bummer, I was just looking into using this for a free service I made a while ago. Hopefully they'll bake in support at some point
Re:Get HTTPS for free by finnn on Sunday January 31, 2016 @12:45PM (#11007130)
Note that that's the current limits, but they have stated that they plan to raise them greatly in the future
Re:Get HTTPS for free by x0 on Saturday January 30, 2016 @06:49PM (#11004397)
5 certs per domain name per week. I'm currently rate limited, I should be able to get my www covered in 6 days.
Re:Get HTTPS for free by novaleaf on Saturday January 30, 2016 @07:25PM (#11004547)
i almost went down this route, then realized I could avoid all this R&D and just pay $40 for a wildcard cert.
Re:Get HTTPS for free by pytrin on Saturday January 30, 2016 @10:10PM (#11005055)
$40? I paid over $90 for mine. Can I ask where you got it from?
Re:Get HTTPS for free by mfkp on Sunday January 31, 2016 @12:03AM (#11005300)
https://www.ssl2buy.com/alphassl-wildcard.php

Here's where I got mine, works great.

Re:Get HTTPS for free by pytrin on Sunday January 31, 2016 @12:16AM (#11005332)
Nice! Bookmarked for next renewal. Thanks!
Re:Get HTTPS for free by nly on Sunday January 31, 2016 @07:05AM (#11006144)
StartSSL do wildcards for $30/yr (minimum 2 years).
Re:Get HTTPS for free by meshr on Sunday January 31, 2016 @08:57AM (#11006389)
And here you can pay by bitcoins https://hostigation.com/?page=SSL
Re:Get HTTPS for free by novaleaf on Thursday February 04, 2016 @01:43PM (#11036152)
as mfkp said, that's where I got mine too.

Important though, for compatability with firefox and some other browsers, you'll need to copy the intermediate cert to the end of the cert file. it works fine with 2 certs in the file, just put the intermediate at the end.

Re:Get HTTPS for free by gaia on Sunday January 31, 2016 @03:46PM (#11007980)
Having only a half a dozen subdomains, with maybe another half a dozen being added per year (well below the limits), are there any advantages to using a wildcard cert VS individual certs for the subdomains? In other words, any way to justify the extra $30/year for a wildcard cert?
Re:Get HTTPS for free by thecrazyone on Tuesday February 02, 2016 @05:04AM (#11018563)
If you're thinking you're going to use LE, they're rate limits which make individual certs for sub domains unreasonable
Re:Get HTTPS for free by andybak on Sunday January 31, 2016 @06:11AM (#11006035)
Can you limit the width of the main content container? Lines that long aren't nice to read. I'd probably bump the font size and switch to a nice sans serif if I were you.

I almost pasted the page into something else to make it easier to read - before realising how short it was! It's still a touch off-putting as it is.

Re:Get HTTPS for free by desireco42 on Saturday January 30, 2016 @05:35PM (#11004130)
Thank you, I was looking through it trying to find your email to thank you.

Process of getting ssl certs is not very simple and the way you laid it out for us/me really helped.

My small site I used as example zeljko.rocks is now https secured.

Re:Get HTTPS for free by doughj3 on Saturday January 30, 2016 @01:32PM (#11003074)
Thanks, diafygi! I used this a few weeks ago for a new domain and it was incredibly easy to get set up. Definitely appreciate you providing both Nginx and Apache isntructions as well. Great tool here!
Re:Get HTTPS for free by seivan on Saturday January 30, 2016 @01:15PM (#11002972)
So if you use the Keychain Assistant on OS X to generate a CSR, that should be enough? Or am I missing something here? Thanks for the service!
Re:Get HTTPS for free by diafygi on Saturday January 30, 2016 @01:22PM (#11003016)
If they generate x509 compliant CSRs, then this should work. If not, please file an issue with the CSR, and I'll take a look to see why it's not parsing correctly.
Re:Get HTTPS for free by seivan on Saturday January 30, 2016 @01:40PM (#11003102)
Yup, though not sure I am doing it right.

Printed the public key and that worked fine. Went to step 2 and pasted in my CSR, and that also worked fine.

Basically Start Keychain -> "Request a Certificate from a Certificate Authority" -> Save to disk.

Though weirdly enough, my public key generated from keygen didn't quite work, I actually had to use

"openssl rsa -in myPrivateKey -pubout" for it to accept it. Why is that?