I am trying to get https working towards service backend. But no matter how I provide the CA certificate, I cannot get it working. I get a 500 internal server error.
Only if I switch on 'insecureSkipVerify' it does its job. I I also tried to put in certificate directly as base64 coded string. Traefik does not complain about config but its just not working as expected.
Here is the extract from my dynamic config (using dynamic directory provider):
I am trying to get https working towards service backend. But no matter how I provide the CA certificate, I cannot get it working. I get a 500 internal server error.
Could you provide some logs ? (in debug mode if that is feasible)
Only if I switch on 'insecureSkipVerify' it does its job. I I also tried to put in certificate directly as base64 coded string. Traefik does not complain about config but its just not working as expected.
As explained in the documentation the root certificate must be provided as a file path (accessible to Traefik) or as a plain string (not base64 encoded).
Maybe the problem is related to the certificate validation. As the server URL contains an IP the validation process will check that this IP is available as a SAN in the certificate. If your certificate contains only a domain as a SAN, then the ServerNameoption should be used to specify its value (used for the validation).
And exception/error message I can see in traefik log is:
time="2022-12-13T09:43:39Z" level=debug msg="'500 Internal Server Error' caused by: x509: certificate signed by unknown authority"
Here above certificate is the keystore certificate of my backend server.
Can you please let me know what could be the issue?