Self-signed certificates are banned in HTTP/2 onwards, which is really irritating when it is used for internal server-to-server communications.
You have to set up a Root CA certificate and use that to sign a second certificate. It's the same thing but with extra steps.