|
|
|
|
|
by ancientsofmumu
1489 days ago
|
|
> if nginx made letsencrypt as easy as caddy does The EFF cerbot plugin has it covered; assuming your generic Debian server with nginx already configured to host www.domain.com (trivial hello, world setup - nothing fancy) then it's: apt-get install cerbot python3-certbot-nginx
certbot --nginx -d www.domain.com -d domain.com \
--agree-tos -m "email@domain.com" --no-eff-email \
--deploy-hook "systemctl reload nginx"
systemctl restart nginx
All done. Certbot is already running as a systemd service to handle ongoing renewals and it'll now restart nginx if your cert is updated. This example uses the trivial http-01 ACME method, if you need the more complex DNS based setup for wildcards that'll take a bit more elbow grease. |
|