Re:How to use Let's Encrypt with multiple domains on Nginx o...
by krkoch on Monday June 27, 2016 @02:55AM
(#11984550)
If you know how, please do tell or provide some pointers. It would be nice to set up at my site.
[ Parent
| on HN ]
Re:How to use Let's Encrypt with multiple domains on Nginx o...
by loonattic on Monday June 27, 2016 @03:03AM
(#11984579)
I use acme-tiny (with --acme-dir) and set up nginx to point the /.well-known/acme-challenge to a directory acme-tiny can write to.
It should be possible to do reverse proxying with nginx for whatever web server hosts the acme challenges..
Re:How to use Let's Encrypt with multiple domains on Nginx o...
by icebraining on Monday June 27, 2016 @04:08AM
(#11984782)
+1, if you have just one server, it's merely a matter of adding
location /.well-known/acme-challenge/ {
alias {directory};
try_files $uri =404;
}
to the Nginx config of each site, then having a script on cron that generates the csr and calls acme_tiny. It's fairly easy to set up and you can be reasonably sure it won't screw up your site if it fails for some reason.
Re:How to use Let's Encrypt with multiple domains on Nginx o...
by wildpeaks on Monday June 27, 2016 @03:47AM
(#11984714)
Look for the "webroot" mode of the official client (or one of the other lightweight clients).
Example: https://gist.github.com/cecilemuller/a26737699a7e70a7093d4dc...