How to avoid this error ?
"'500 Internal Server Error' caused by: x509: cannot validate certificate for xxx.xxx.xxx.xxx because it doesn't contain any IP SANs"
I have crete this router and service in dynamic configuration
http:
routers:
webmin-rtr:
rule: "Host(webmin.{{env "DOMAINNAME"}}
)"
entryPoints: https
service: webmin-src
tls:
passthrough: true
services:
webmin-src:
loadBalancer:
servers:
- url: "https://xxx.xxx.xxx.xxx:10000"
In my docker-compose file I have setup TLS for all Services using DNS challenge
- "--entryPoints.https.http.tls.certresolver=dns_challenge_ovh"
- "--entrypoints.https.http.tls.options=tls-opts@file"
- "--entryPoints.https.http.tls.domains[0].main=$DOMAINNAME"
- "--entryPoints.https.http.tls.domains[0].sans=*.$DOMAINNAME"
- "--certificatesresolvers.dns_challenge_ovh.acme.dnschallenge=true"
- "--certificatesresolvers.dns_challenge_ovh.acme.dnschallenge.resolvers=$DNS_CHALLENGE_RESOVERS"
- "--certificatesresolvers.dns_challenge_ovh.acme.dnschallenge.provider=$DNS_CHALLENGE_PROVIDER"
- "--certificatesresolvers.dns_challenge_ovh.acme.dnschallenge.delayBeforeCheck=$DNS_CHALLENGE_DELAY"
- "--certificatesresolvers.dns_challenge_ovh.acme.email=$DNS_CHALLENGE_EMAIL"
- "--certificatesresolvers.dns_challenge_ovh.acme.storage=/acme.json"