Using pihole's SSL for cockpit #23170
revpixel
started this conversation in
Show and tell
Replies: 1 comment
-
|
Interesting setup, thanks for sharing 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using Pi‑hole’s Let’s Encrypt Certificate for Cockpit (Automatic Nightly Sync)
I ran into a setup a lot of people seem to have: Pi‑hole v6 and Cockpit running on the same machine. Pi‑hole already handles my Let’s Encrypt certificate automatically, but Cockpit still defaults to its own self‑signed cert — which means you get the usual browser warnings even though a valid cert already exists.
Instead of configuring Cockpit’s SSL separately (or running a second ACME client), I wrote a tiny script that:
I placed the script here: /usr/local/bin/update-cockpit-cert.sh
update-cockpit-cert.sh
This lets Pi‑hole remain the single source of truth for SSL, and Cockpit simply picks up the updated cert automatically every night. No duplicate ACME setups, no manual renewals, no extra configuration — just reuse the cert you already have.
Beta Was this translation helpful? Give feedback.
All reactions