Help with setup Traefik with pihole as DNS server for local secure hostnames

Hello peeps, please help me understand the following;

is it possible to set up a config in which Traefik works with PiHole as DNS server, to have local-only secure custom hostnames for containers without the need for a real domain, but also without having to tinker with cert creation and verification processes?
Like, what's the minimal config for this, or does such a setup always require extra stuff like setting up something like mkcert and always trusting certs manually? I couldn't find a working blueprint yaml (or didn't get one to work, at least).

If you mean accessing local sites via https with TLS, then it only works with public domain names. Only for those you can get a trusted LetsEncrypt or paid cert.

If you want to use custom local names, then you can create local TLS certs, but you must import them into the clients to trust them.