Use a systemd timer for certbot-plugin-porkbun and contribute it upstream #140

Closed
opened 2022-05-20 03:04:15 +00:00 by a · 3 comments
Owner

Currently we use a cronjob for automated TLS cert renewals. However a systemd timer is a much cleaner option since it can be monitored by systemd and the start time can be easily randomized.

We should also contribute this to upstream and to the AUR package.

Currently we use a cronjob for automated TLS cert renewals. However a systemd timer is a much cleaner option since it can be monitored by systemd and the start time can be easily randomized. We should also contribute this to [upstream](https://github.com/infinityofspace/certbot_dns_porkbun) and to the AUR package.
a added the
enhancement
label 2022-05-20 03:04:15 +00:00
a added this to the (deleted) project 2022-05-20 03:04:15 +00:00
a added the
help wanted
label 2022-05-20 03:05:53 +00:00
Author
Owner

I finished packaging porkbun-dynamic-dns-python-git so we can reuse and slightly modify the systemd timer from that.

I finished packaging `porkbun-dynamic-dns-python-git` so we can reuse and slightly modify the systemd timer from that.
a started working 2022-05-20 16:10:20 +00:00
Author
Owner

Oh 🤦 the certbot package already has a timer. Let's just use that then.

Oh 🤦 the `certbot` package already has a timer. Let's just use that then.
Author
Owner

Alright, I set this up with the following file:

cat /etc/systemd/system/certbot-renew.service.d/override.conf
[Service]
ExecStart=/usr/bin/certbot certonly --non-interactive --preferred-challenge dns --authenticator dns-porkbun --dns-porkbun-credentials /etc/porkbun.ini -d "exozy.me,*.exozy.me"

I also deleted the cronjob.

Alright, I set this up with the following file: ``` cat /etc/systemd/system/certbot-renew.service.d/override.conf [Service] ExecStart=/usr/bin/certbot certonly --non-interactive --preferred-challenge dns --authenticator dns-porkbun --dns-porkbun-credentials /etc/porkbun.ini -d "exozy.me,*.exozy.me" ``` I also deleted the cronjob.
a closed this issue 2022-05-20 16:26:19 +00:00
a stopped working 2022-05-20 16:26:19 +00:00
15 minutes 59 seconds
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 15 minutes 59 seconds
a
15 minutes 59 seconds
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: exozyme/exozyme#140
No description provided.