Renew let’s encrypt SSL cert on Debian

A note for how I renew let’s encrypt SSL cert

// With

/root/ --issue --standalone -d -d

rm /etc/haproxy/dot-jp.blahdns.pem

cd /root/

cat /root/ /root/ > /etc/haproxy/dot-jp.blahdns.pem

service haproxy restart

// With certbot

// Renew
certbot certonly --cert-name --force-renewal

// Working method 1
certbot delete 

// After delete all cert
certbot certonly --rsa-key-size 4096 --standalone --agree-tos --no-eff-email --email [email protected] -d -d

// Merge SSL fullchain and privkey into 1 pem

cd /etc/letsencrypt/archive/
cat fullchain1.pem privkey1.pem > /etc/haproxy/dot-de.blahdns.pem

// restart HAProxy
service haproxy restart

Updated 20, Jan 2020

Photo by Jahsie Ault on Unsplash