Script to download Letsencrypt cert files from another server to Pi-hole.
You need a webserver in your LAN which serves the *.pem
files you want to use on your Pi-hole. Usually, you obtain them from Letsencrypt via certbot
.
- SSH into your Pi-hole:
ssh root@pihole
- Install required Python3 libraries:
apt install python3-requests
- Clone this repository:
git clone https://github.com/abaumg/pihole-letsencrypt
- Edit crontab:
crontab -e
and add a new line containing0 3 * * * /usr/bin/python3 /root/pihole-letsencrypt/update_keyfiles.py 'http://internal.host/path/to/certs/'