Self-Signed Certificate for Homelab

I have the same error on the same line (_ssl.c:3874).
So far I’ve noticed that certificates generated with mkcert work, but I don’t know why.