Skip to content

Commit 93b9a18

Browse files
committed
Update for acme on raspberrymatic
1 parent 57c42a1 commit 93b9a18

File tree

1 file changed

+12
-1
lines changed
  • content/post/2024/11/19/acme-on-raspberrymatic

1 file changed

+12
-1
lines changed

content/post/2024/11/19/acme-on-raspberrymatic/index.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Add the automatic renew cronjob by using `crontab -e` and add this line:
4646
0 0 * * * /usr/local/.acme.sh/acme.sh --cron --home /usr/local/.acme.sh > /dev/null
4747
```
4848

49+
Update 03/25/2025: The entry in the crontab is overriden on each update.
50+
4951
## Setup the DNS API
5052
This step needs only to be done once. [Follow the instructions](https://github.com/acmesh-official/acme.sh/wiki/dnsapi2#dns_porkbun) to export the credentials like this:
5153

@@ -69,6 +71,15 @@ Run this command to create the certificate:
6971
> /etc/config/server.pem && chmod 600 /etc/config/server.pem && /etc/init.d/S50lighttpd reload"
7072
```
7173

74+
# Renew the certificate
75+
I've executed the same command as the crontab would do:
76+
77+
```bash
78+
/usr/local/.acme.sh/acme.sh --cron --home /usr/local/.acme.sh > /dev/null
79+
```
80+
81+
This will automatically run the `reloadcmd` we've added in the last step, so after a reload you should see the updated certificate already in action.
82+
7283
# Verify installation
7384
Open the RaspberryMatic UI and try to change the used protocol from `http` to `https`. You shouldn't get a warning and your new Let's encrypt certificate should be ready to use.
7485

@@ -77,4 +88,4 @@ Run this command to create the certificate:
7788
Additionally I've setup my Uptime Kuma to monitor the new service so I can see if the certificate renewal is really working.
7889

7990
# Conclusion
80-
I'm happy how this worked out. It's quite fast and easy to create self signed certificates. By using the `/usr/local/` location for installation, it should also survive firmware updates. I just hope this will be the case but I'll update the blog post once I know more.
91+
I'm happy how this worked out. It's quite fast and easy to create self signed certificates. By using the `/usr/local/` location for installation, it should also survive firmware updates. ~~I just hope this will be the case but I'll update the blog post once I know more.~~ Firmware updates require that you'll add the crontab, all other settings survive an update.

0 commit comments

Comments
 (0)