Home
Submit fixes on github
Follow me on twitter


2023

(certbot, install certbot, al2023, amazon linux 2023, use python)

To install the initial certificate:

dnf install python3  
python3 -m venv /opt/certbot  
source /opt/certbot/bin/activate  
pip install --upgrade pip  
pip install certbot certbot-nginx  
certbot certonly --standalone  
:: follow prompts  
:: once certs are on disk, start nginx  
systemctl start nginx.service  

To renew:

/opt/certbot/bin/certbot renew --nginx  

To perform a dry run of renew:

/opt/certbot/bin/certbot renew --nginx --dry-run --no-random-sleep-on-renew  

Notes:

Reference: https://certbot.eff.org/instructions?ws=nginx&os=pip