SSL / Let's Encrypt Generator for Nginx & Apache
Generate the Certbot command to get a certificate, plus the resulting Nginx or Apache SSL config — HSTS and session settings included.
About this tool
The output was tested on real Nginx 1.30 and Apache 2.4 servers, not just read over for typos, which is how it handles some obscure scope rules (like Apache's SSLSessionCache being illegal inside a <VirtualHost> block, and needing a different cache syntax than Nginx entirely) that only a real server actually catches.
Certbot sets up automatic renewal on its own (a systemd timer or cron job, depending on your OS) — verify it's active with systemctl list-timers | grep certbot, and test that renewal actually works without waiting for expiry using certbot renew --dry-run. A cert that fails to silently auto-renew is one of the most common ways sites go down. See How to use ProxyForge for a walkthrough of every setting and where the output goes.
How it works
Pick Nginx or Apache, then choose how Certbot will obtain the cert — automatic, webroot, or standalone.
Enter your domain(s) and, if you like, an email, toggle wildcard or HSTS as needed — both outputs update live.
Run the Certbot command to get the certificate, then copy the SSL config into your existing server block and test it (nginx -t or apachectl configtest) before you reload.
Common errors: unknown directive "http2" · Apache won't start after SSLStaplingCache / OCSP stapling · Let's Encrypt renewal fails behind a redirect · nginx -t passes, nothing on port 443
ssl-config.mozilla.org now redirects). Rather than bake a cipher list in here and risk it going stale, get the current ssl_ciphers line from TLS Configurator (choose Intermediate, unless you specifically know you want Modern) and drop it into the config below.
Need something Certbot can't give you?
Let's Encrypt (what Certbot uses) only issues free domain-validated certs. For EV/OV certificates, or a wildcard cert without DNS API access, you'd need a paid CA instead:
Some links above are affiliate links — signing up through them may earn this site a small commission at no extra cost to you. See the privacy policy for details.