Run with elevated priviledges where necessary
make sure the script files with .sh are executable. If not, run:
chmod +x [filename]
- To
renewordry-runa renewal of your Lets Encrypt certificateconfirmwhat web server you are running on eithernginxorapache. Run the following and follow the prompts- For Apache run:
or
./certbot-apache.shbash certbot-apache.sh - For Nginx run:
or
./certbot-nginx.shbash certbot-nginx.sh
- For Apache run:
-
The
.timerthe timer runstwice dailyto check if the certificate is due for renewal -
The timers are currently set to check for renewal twice daily can configure this to your preference by editing
certbot.timer -
To
installandenablethe systemd timers and services run the following and follow the prompts:(I intentinally refused to run scripts as priviledged by default to make sure guys are sure about what they are doing)./certbot-systemd.sh -
The script will copy a
.servicefile and a correspoding.timerfile to systemd path (where all your unit files are located). Check the Arch Wiki on systemd -
Confirm your timer has been set by running
sudo systemctl list-timers -
Should give someting of the sort
NEXT LEFT LAST PASSED UNIT ACTIVATES
Tue 2018-02-20 01:00:00 UTC 31min left Tue 2018-02-20 00:00:05 UTC 28min ago certbot.timer certbot.service