This guide has moved. It is now maintained at github.com/kaczmar2/pihole-ssl-guide, which now fully automates this process with scripts. The manual steps below remain for reference, but are no longer updated here.
See my other guides for SSL certificates on Pi-hole v6: