Live data from Hacker News

Using Free SSL/TLS Certificates from Let’s Encrypt for Nginx

nginx.com

21–30 of 50 posts

Re: Using Free SSL/TLS Certificates from Let’s Encrypt for Nginx

#21
Thanks for the article and the other discusions, especially the pointers to Caddy.

I have been using Cloudflare for https for my main site only and have been deciding whether to use Cloudflare for everything or bite the bullet and set up my own https.

Re: Using Free SSL/TLS Certificates from Let’s Encrypt for Nginx

#22

I was hoping this was an nginx module where you could specify something like `ssl_letsencrypt on;` and be done with it.

Caddy has this feature and it's amazing. https://caddyserver.com/docs/automatic-https

Know of an automated caddy docker reverse proxy container?

Here's an nginx one. Took about https://hub.docker.com/r/dmp1ce/nginx-proxy-letsencrypt/

Would love to see a caddy version of same

---

hmm, I guess the current caddy docker images can do this though though they need a little more configuration

Re: Using Free SSL/TLS Certificates from Let’s Encrypt for Nginx

#23

Here is my Nginx config for let's encrypt on my case, feel free to criticize or copy it: https://gist.github.com/alex-min/158f35f604b24e163ae9 . I've managed to get a A+ on the ssllab test so it should not be too bad I believe (but I'm not an expert so if you have some idea for improvements, I would be glad).

Here is my configuration: https://github.com/majewsky/system-configuration/blob/master...

Domains with this configuration get A+ on ssllabs and securityheaders.io (test with "repo.holocm.org" if you like). It includes an autorenewal script wrapped in a systemd timer unit.

There is one bug, though: The autorenewal script fails because letsencrypt crashes when stdin is not a TTY. ( https://github.com/letsencrypt/letsencrypt/issues/2523 )

Re: Using Free SSL/TLS Certificates from Let’s Encrypt for Nginx

#24

Earlier quoted context omitted.

Caddy has this feature and it's amazing. https://caddyserver.com/docs/automatic-https

Know of an automated caddy docker reverse proxy container? Here's an nginx one. Took about https://hub.docker.com/r/dmp1ce/nginx-proxy-letsencrypt/ Would love to see a caddy version of same --- hmm, I guess the current caddy docker images can do this though though they need a little more configuration

There's ongoing discussion about this here: https://github.com/mholt/caddy/issues/199

One of my tasks this week is to get this in motion.

Re: Using Free SSL/TLS Certificates from Let’s Encrypt for Nginx

#25

I tried using the official encrypt client on my low spec VPS this weekend (cent os 6). It wouldn't install as when compiling it runs out of memory. Why so heavyweight. Luckily I found a python script which uses the acme tools stuff and that worked fine. Maybe providing binaries would be another option so I don't have to compile everything myself.

What were you compiling? The official client is written in Python.

Re: Using Free SSL/TLS Certificates from Let’s Encrypt for Nginx

#26
post #9

I was hoping this was an nginx module where you could specify something like `ssl_letsencrypt on;` and be done with it.

Or better yet, make "ssl_letsencrypt on;" the default. Make it so that newbies can just apt-get install nginx/apache/lighttpd/etc. and have https up and running, no questions asked. The real reason https adoption isn't up to par has less to do with people not willing to spend money, and more because it's not up by default. Now that https is free, please make it enabled by default.

That was something that I complained about even before letsencrypt. It's insanely difficult for anyone except crypto experts to figure out a sane selection of cipher suite, so why can't they not just include one or two sane presets with the application, that get updated along with it when algorithms are broken and new ones emerge?

Re: Using Free SSL/TLS Certificates from Let’s Encrypt for Nginx

#27

Has anyone found a good tutorial for DNS-based verification of a Let's Encrypt certificate? It'd simplify life greatly for those of us with multi-server clusters behind an Amazon ELB or something similar.

Not a tutorial, but I was having trouble with that damn 'official' Letsencrypt client and the complexity of adding a .wellknown directory on every site I needed a certificate for.

So I saw the light in the form of a bash-script [0], wrote a short hookscript, and now I can centrally manage through DNS.

There are a couple of example scripts [1], and it really simple to write your own.

[0] https://github.com/lukas2511/letsencrypt.sh

[1] https://github.com/lukas2511/letsencrypt.sh/wiki/Examples-fo...

Re: Using Free SSL/TLS Certificates from Let’s Encrypt for Nginx

#28
post #9

Earlier quoted context omitted.

Or better yet, make "ssl_letsencrypt on;" the default. Make it so that newbies can just apt-get install nginx/apache/lighttpd/etc. and have https up and running, no questions asked. The real reason https adoption isn't up to par has less to do with people not willing to spend money, and more because it's not up by default. Now that https is free, please make it enabled by default.

That was something that I complained about even before letsencrypt. It's insanely difficult for anyone except crypto experts to figure out a sane selection of cipher suite, so why can't they not just include one or two sane presets with the application, that get updated along with it when algorithms are broken and new ones emerge?

I just went threw a full configuration and the cipther suit was the easiest. I had some guides and the basically said, copy this or this depending on how prohibitive you want it.

The hardest thing to figure out is HPKP (and I still have not).

Re: Using Free SSL/TLS Certificates from Let’s Encrypt for Nginx

#29

Here is my Nginx config for let's encrypt on my case, feel free to criticize or copy it: https://gist.github.com/alex-min/158f35f604b24e163ae9 . I've managed to get a A+ on the ssllab test so it should not be too bad I believe (but I'm not an expert so if you have some idea for improvements, I would be glad).

You should also add HPKP (leaf pinning), it insanly powerful and a challange to get right. I have not figured out why the damn ssllabs complains about it to me.

Re: Using Free SSL/TLS Certificates from Let’s Encrypt for Nginx

#30
post #29

Here is my Nginx config for let's encrypt on my case, feel free to criticize or copy it: https://gist.github.com/alex-min/158f35f604b24e163ae9 . I've managed to get a A+ on the ssllab test so it should not be too bad I believe (but I'm not an expert so if you have some idea for improvements, I would be glad).

You should also add HPKP (leaf pinning), it insanly powerful and a challange to get right. I have not figured out why the damn ssllabs complains about it to me.

I wanted to add it but I've seen all these warnings on the Internet about it and I'm not so sure I will be able to manage it if it does not work as expected. I've added X-Frame-Options, Strict-Transport-Security, X-Xss-Protection and X-Content-Type-Options because they have very few side-effects but I'm a bit afraid of HPKP.
Post reply on HN