Run with elevated priviledges where necessary
make sure the script
files with .sh
are executable. If not, run:
chmod +x [filename]
- To
renew
ordry-run
a renewal of your Lets Encrypt certificateconfirm
what web server you are running on eithernginx
orapache
. Run the following and follow the prompts- For Apache run:
or
./certbot-apache.sh
bash certbot-apache.sh
- For Nginx run:
or
./certbot-nginx.sh
bash certbot-nginx.sh
- For Apache run:
-
The
.timer
the timer runstwice daily
to 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
install
andenable
the 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
.service
file and a correspoding.timer
file 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