I was also seeing the “ssl handshake failed crypto error: certificate verify failed” in my Unbound logs for days. It turned out the issue was due to an expired or untrusted root certificate. I fixed it by updating the system’s CA certificates and making sure DNS-over-TLS was using a valid upstream server with a proper certificate.