Pi-hole change SSL certificate

The documentation I found in a quick search out there, all want me to change lighttpd to use my own SSL certifcate.
But al least recent versions of the self hosted (None Container) instance, does no longer use lighttpd to serve there WebUI.

Now the pihole service self listen on Port 80 and 443.

karloff@Bessel:~$ ss -tulpen | grep pihole
udp   UNCONN 0      0                               0.0.0.0:53        0.0.0.0:*    uid:999 ino:14263 sk:b cgroup:/system.slice/pihole-FTL.service <->
udp   UNCONN 0      0                                  [::]:53           [::]:*    uid:999 ino:14265 sk:e cgroup:/system.slice/pihole-FTL.service v6only:1 <->
tcp   LISTEN 0      200                             0.0.0.0:443       0.0.0.0:*    uid:999 ino:16764 sk:1 cgroup:/system.slice/pihole-FTL.service <->
tcp   LISTEN 0      200                             0.0.0.0:80        0.0.0.0:*    uid:999 ino:16763 sk:2 cgroup:/system.slice/pihole-FTL.service <->
tcp   LISTEN 0      32                              0.0.0.0:53        0.0.0.0:*    uid:999 ino:14264 sk:3 cgroup:/system.slice/pihole-FTL.service <->
tcp   LISTEN 0      200                                [::]:443          [::]:*    uid:999 ino:16766 sk:6 cgroup:/system.slice/pihole-FTL.service v6only:1 <->
tcp   LISTEN 0      200                                [::]:80           [::]:*    uid:999 ino:16765 sk:7 cgroup:/system.slice/pihole-FTL.service v6only:1 <->
tcp   LISTEN 0      32                                 [::]:53           [::]:*    uid:999 ino:14266 sk:8 cgroup:/system.slice/pihole-FTL.service v6only:1 <->

To change SSL certficate you can edit /etc/pihole/pihole.toml and change inside [webserver] section the domain value to your needs, to get rid of some Warning.
You can also adjust inside [webserver.tls] section the cert path.

[Read More]
ansible  tls 

Use Ansible to deploy TrueNAS SSL

The goal is to deploy Lets Encrypt Certificate for TrueNAS useing the API and ansible.

All you need is an API-Key and the content of the SSL Key and fullpem, you can also use username & password for the API calls, but this is not covered here.

The process is relatively straightforward first you need the POST the new key and certifcate, then fetch all available certs from the API and set the ID of the certificate which you want to use. The ID is simply always the last, because every time you add a new certificate the ID increase.

[Read More]