0%

Setup your HTTPS website using Certbot

When you are considering support basic HTTPS blog, you may choose Certbot to perform a self-assign certificate, according to the Offical Tutorial.

After installed the tool, you may check whether /etc/cron.d/certbot was configured, if not, you may add it by performing command line:

1
sudo certbot renew --dry-run

Or add it manually into the corresponding file:

1
2
3
4
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew