9951 explained code solutions for 126 technologies


nginxUsing Letsencrypt with Nginx


Consider using Certbot Nginx script to automatically configure SSL for your web app:

server {
  server_name domain.com;
  listen 443 ssl;

  ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;

  include /etc/letsencrypt/options-ssl-nginx.conf;
}ctrl + c
server {

virtual server configuration block

listen 443 ssl

enable SSL

domain.com

example domain to enable Letsencrypt SSL for

fullchain.pem

generated certificate file

privkey.pem

generated certificate key