Default certificate from letsencrypt

Letsencryp certificate resolver is working well for any domain which is covered by certificate.
i have certificate from letsencript "mydomain.com" + "*.mydomain.com". it is correctly resolved for any domain like myhost.mydomain.com.

In the case of connecting to the IP address (10.10.20.13) of traefik, the certificate resolver is unable to resolve certificate, and I have "self-signed certificate TRAEFIK DEFAULT CERT".


echo ""| openssl s_client -connect 10.10.20.13:443
CONNECTED(00000003)
depth=0 CN = TRAEFIK DEFAULT CERT
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 CN = TRAEFIK DEFAULT CERT
verify error:num=21:unable to verify the first certificate
verify return:1
---
Certificate chain
 0 s:/CN=TRAEFIK DEFAULT CERT
   i:/CN=TRAEFIK DEFAULT CERT

I want to have here (for requests to IP address) certificate from letsencrypt for mydomain.com

As far that I understand, you have no such functionality and there is no way to set up a "default certificate" which will point to letsencrypt, and this hack "Letsencypt as the traefik default certificate" is a single way to do that. in this way, I need to restart traefik every time when a certificate is updated.