The documentation seems to suggest that we could test Caddy locally, by adding an existing domain to /etc/hosts and then serving over caddy, but the certificate registration fails since the domain points to the real server IP.
Did I misunderstand what the documentation is suggesting, or am I doing something wrong?
For example, for ustunozgur.org which is currently hosted elsewhere, I have the following Caddyfile:
I get the following error:
Activating privacy features…2016/06/23 15:46:35 [ustunozgur.org] failed to get certificate: acme: Error 400 - urn:acme:error:tls - Failed to connect to 126.96.36.199:443 for TLS-SNI-01 challenge
Validation for ustunozgur.org:443