Using Let’s Encrypt SSL certificate with an Nginx stack

5.83K viewsConfiguration https Intermediate SSL

Free SSL certificates are now available to the public through Do they work with Nginx and LEMP stacks?


Yes, certificates generated through Let’s Encrypt are perfectly valid work just fine with Nginx. However, for the time being I’d suggest installing certificates you create manually as the Nginx plugin for the client is still flagged as experimental and not included in letsencrypt-auto.

The last time I used the Nginx plugin to update my server bock configurations, it jumbled up my configuration making it unusable. Until the community sorts out how they want to support Nginx, I’d say use the client to generate your certificates and then just update your Nginx configuration yourself.

git clone
cd letsencrypt
./letsencrypt-auto certonly --standalone --email -d -d

This should create your certificates in /etc/letsencrypt/live/

Here are the lines from one of my Nginx SSL configurations where I referenced the files generated by Let’s Encrypt. Some sites suggest using different chains, but I believe this is actually the proper way. It gets me an A+ on the Qualsys SSL server test.

ssl_certificate /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;
ssl_trusted_certificate /etc/letsencrypt/live/;