Updated Certbot Guide
Nginx Install
sudo apt update
sudo apt install nginxCertbot
Resource link: https://certbot.eff.org/instructions?ws=other&os=pip
Install: Nginx Certbot
apt install python3 python3-venv libaugeas0
python3 -m venv /opt/certbot/
/opt/certbot/bin/pip install --upgrade pip
/opt/certbot/bin/pip install certbot certbot-nginx
ln -s /opt/certbot/bin/certbot /usr/bin/certbotInstall: cloudflare plugin
/opt/certbot/bin/pip install certbot certbot-dns-cloudflareOption 1: User nginx reverse proxy with certbot nginx
Make Nginx config:
Make file for domain:
Config setup: (This config will be auto managed by cert bot)
Now simlink your available site to enabled:
Now test config and restart nginx:
Make nginx cert
Follow instructions on screen (Adding screenshots soon)
Test cert renew:
Option 2: User nginx reverse proxy with certbot cloudflare
Cloudflare API token used by Certbot
Make .ini file for domain in:
Contents in file:
Save and close file
Now change file permissions:
Make cert:
Test cert renew:
Make Nginx config:
Root-Domain:
This section is for if you're making a nginx reverse proxy for just your root domain and no subdomains.
Make file for domain:
Config setup: (This config WON'T be auto managed by certbot)
Sub-Domain:
This section is for if you're using sub-domains.
Make file for domain:
Config setup: (This config WON'T be auto managed by certbot)
Now simlink your available site to enabled:
Now test config and restart nginx:
Auto renew with cron
Extras
Http Password:
Last updated