Wait for certificate generation until DNS points to server

Hello, I am wondering if it is possible for caddy to not generate a Let’sEncrypt certificate until the domain DNS are pointing to the host IP. In the meantime, caddy could have a self-signed certifciate. This would be useful when I am waiting for someone to point their DNS to my server (for a domain I don’t control) and I can’t be waiting for them to notify me. If this was possible, I would be able to leave it and when the DNS points to the IP, caddy would automatically trigger the SSL certificate generation.

On the other hand, I don’t want to leave the ssl generation as it will be exponentially growing in wait-time, this means that if the other person points it a day later, it could face minutes or hours of downtime until it points to the domain, I’m I wrong with this?

thank you.

See this feature request:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.