Hi
I am trying to get Caddy to redirect to a certain site using HTTPS but always have a problem with the LetsEncrypt certificate not working correctly. If i change the config to use a self signed cert then the page works but then i get the secure page warning.
Caddy is Running on Windows 7 and caddy version is 0.10.12
Here is my caddyfile. I have swapped out my domain name with “example”
manager.example.com.au:443 {
tls { max_certs 10 }
proxy / manager.example.com.au:51235 {
transparent
}
log access.log
errors error.log
}
Below is the caddy.log file.
2018/04/03 11:29:25 https://manager.example.com.au
2018/04/03 11:29:25 http://manager.example.com.au
2018/04/03 11:32:07 [INFO] Obtaining new certificate for manager.example.com.au
2018/04/03 11:32:08 [INFO][manager.example.com.au] acme: Obtaining bundled SAN certificate
2018/04/03 11:32:09 [INFO][manager.example.com.au] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/9n2P8ea4WyrhtHessisVuVnfoUBZctwlJtzFTmeEVkM
2018/04/03 11:32:09 [INFO][manager.example.com.au] acme: Could not find solver for: dns-01
2018/04/03 11:32:09 [INFO][manager.example.com.au] acme: Trying to solve HTTP-01
2018/04/03 11:32:15 http: TLS handshake error from 119.252.188.52:45482: [manager.example.com.au] failed to get certificate: acme: Error 400 - urn:ietf:params:acme:error:connection - Fetching http://manager.example.com.au/.well-known/acme-challenge/4_snUIABuEuBwCfy3JHLCIEDhTsY8Sl2CFX-nFlU6PI: Error getting validation data
2018/04/03 11:33:04 http: TLS handshake error from 192.168.0.1:54703: manager.example.com.au: throttled; refusing to issue cert since last attempt on 2018-04-03 11:32:15.1250096 +1000 AEST m=+169.358902101 failed
2018/04/03 11:33:04 http: TLS handshake error from 192.168.0.1:54704: manager.example.com.au: throttled; refusing to issue cert since last attempt on 2018-04-03 11:32:15.1250096 +1000 AEST m=+169.358902101 failed
2018/04/03 11:33:04 http: TLS handshake error from 192.168.0.1:54705: tls: client offered an unsupported, maximum protocol version of 302
2018/04/03 11:33:04 http: TLS handshake error from 192.168.0.1:54706: tls: client offered an unsupported, maximum protocol version of 301
I have port 80, 443 allowed in/out using the Windows Firewall and also i have setup NAT on my router to point to my caddy server. 192.168.0.1 is the address of my router. Is it not passing the connection correctly or something?