1. Output of caddy version
:
v2.5.2 h1:eCJdLyEyAGzuQTa5Mh3gETnYWDClo1LjtQm2q9RNZrs=
2. How I run Caddy:
a. System environment:
I’m running Caddy on Ubuntu via Proxmox 7.2-3 and all relevant virtual machines are running TurnKey WordPress websites and are also hosted on the same proxmox server.
b. Command:
caddy version
sudo systemctl start caddy
To edit file:
sudo nano /etc/caddy/Caddyfile
& after edit:
sudo systemctl reload caddy
c. Service/unit/compose file:
Not sure what is being asked. Running on Ubuntu Container in Proxmox.
d. My complete Caddy config:
testing1.sidneyvega.net {
reverse_proxy 192.168.3.101
}
testing2.sidneyvega.net {
reverse_proxy 192.168.3.102
}
testing3.sidneyvega.net {
reverse_proxy 192.168.3.103
}
testing4.sidneyvega.net {
reverse_proxy 192.168.3.104
}
testing5.sidneyvega.net {
reverse_proxy 192.168.3.105
}
archive1.sidneyvega.net {
reverse_proxy 192.168.3.51
}
archive2.sidneyvega.net: {
reverse_proxy 192.168.3.52
}
archive3.sidneyvega.net {
reverse_proxy 192.168.3.53
}
archive4.sidneyvega.net {
reverse_proxy 192.168.3.54
}
archive5.sidneyvega.net {
reverse_proxy 192.168.3.55
}
archive6.sidneyvega.net {
reverse_proxy 192.168.3.56
}
archive7.sidneyvega.net {
reverse_proxy 192.168.3.57
}
archive8.sidneyvega.net {
reverse_proxy 192.168.3.58
}
3. The problem I’m having:
All Domains point to the proper ISP provided IP address Domains are configured correctly.
If I try to access from WAN (not on same network/IP), these addresses:
testing1.sidneyvega.net
testing2.sidneyvega.net
testing3.sidneyvega.net
testing4.sidneyvega.net
testing5.sidneyvega.net
Everything works, SSL is working, Website can be accessed etc.
However, If I try to access from WAN (not on same network/IP), these addresses:
archive1.sidneyvega.net
archive2.sidneyvega.net
archive3.sidneyvega.net
archive4.sidneyvega.net
archive5.sidneyvega.net
archive6.sidneyvega.net
archive7.sidneyvega.net
archive8.sidneyvega.net
It’s my understanding that Caddy will generate SSL certificates automatically but I get the following error in Chrome:
“This site can’t provide a secure connection archive1.sidneyevega.net sent an invalid response. ERR_SSL_PROTOCAL_ERROR”
Similar error message in other browsers like Firefox, for example.
4. Error messages and/or full log output:
Jul 27 22:02:29 caddy caddy[128]: {"level":"error","ts":1658959349.68464,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"archive4.sidneyvega.net","issuer":"acme-v02.api.letsencrypt.org-directory","error":"[archive4.sidneyvega.net] creating new order: provisioning client: performing request: Get \"https://acme-v02.api.letsencrypt.org/directory\": dial tcp: lookup acme-v02.api.letsencrypt.org on 192.168.1.2:53: read udp 192.168.3.200:49431->192.168.1.2:53: i/o timeout (ca=https://acme-v02.api.letsencrypt.org/directory)"}
Jul 27 22:02:29 caddy caddy[128]: {"level":"warn","ts":1658959349.6847599,"logger":"tls.issuance.zerossl","msg":"missing email address for ZeroSSL; it is strongly recommended to set one for next time"}
Jul 27 22:02:49 caddy caddy[128]: {"level":"warn","ts":1658959369.688755,"logger":"tls.issuance.acme.acme_client","msg":"HTTP request failed; retrying","url":"https://acme-v02.api.letsencrypt.org/directory","error":"performing request: Get \"https://acme-v02.api.letsencrypt.org/directory\": dial tcp: lookup acme-v02.api.letsencrypt.org on 192.168.1.2:53: read udp 192.168.3.200:57528->192.168.1.2:53: i/o timeout"}
Jul 27 22:02:49 caddy caddy[128]: {"level":"error","ts":1658959369.6887608,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"archive4.sidneyvega.net","issuer":"acme.zerossl.com-v2-DV90","error":"account pre-registration callback: performing EAB credentials request: Post \"https://api.zerossl.com/acme/eab-credentials-email\": dial tcp: lookup api.zerossl.com on 192.168.1.2:53: read udp 192.168.3.200:40788->192.168.1.2:53: i/o timeout"}
Jul 27 22:02:49 caddy caddy[128]: {"level":"error","ts":1658959369.6888556,"logger":"tls.obtain","msg":"will retry","error":"[archive4.sidneyvega.net] Obtain: account pre-registration callback: performing EAB credentials request: Post \"https://api.zerossl.com/acme/eab-credentials-email\": dial tcp: lookup api.zerossl.com on 192.168.1.2:53: read udp 192.168.3.200:40788->192.168.1.2:53: i/o timeout","attempt":1,"retrying_in":60,"elapsed":443.609917546,"max_duration":2592000}
Jul 27 22:03:09 caddy caddy[128]: {"level":"warn","ts":1658959389.9475734,"logger":"tls.issuance.acme.acme_client","msg":"HTTP request failed; retrying","url":"https://acme-v02.api.letsencrypt.org/directory","error":"performing request: Get \"https://acme-v02.api.letsencrypt.org/directory\": dial tcp: lookup acme-v02.api.letsencrypt.org on 192.168.1.2:53: read udp 192.168.3.200:48710->192.168.1.2:53: i/o timeout"}
Jul 27 22:03:30 caddy caddy[128]: {"level":"warn","ts":1658959410.2018473,"logger":"tls.issuance.acme.acme_client","msg":"HTTP request failed; retrying","url":"https://acme-v02.api.letsencrypt.org/directory","error":"performing request: Get \"https://acme-v02.api.letsencrypt.org/directory\": dial tcp: lookup acme-v02.api.letsencrypt.org on 192.168.1.2:53: read udp 192.168.3.200:53658->192.168.1.2:53: i/o timeout"}
Jul 27 22:03:30 caddy caddy[128]: {"level":"error","ts":1658959410.201952,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"archive1.sidneyvega.net","issuer":"acme-v02.api.letsencrypt.org-directory","error":"[archive1.sidneyvega.net] creating new order: provisioning client: performing request: Get \"https://acme-v02.api.letsencrypt.org/directory\": dial tcp: lookup acme-v02.api.letsencrypt.org on 192.168.1.2:53: read udp 192.168.3.200:53658->192.168.1.2:53: i/o timeout (ca=https://acme-v02.api.letsencrypt.org/directory)"}
Jul 27 22:03:30 caddy caddy[128]: {"level":"warn","ts":1658959410.2021196,"logger":"tls.issuance.zerossl","msg":"missing email address for ZeroSSL; it is strongly recommended to set one for next time"}
Jul 27 22:03:50 caddy caddy[128]: {"level":"warn","ts":1658959430.204212,"logger":"tls.issuance.acme.acme_client","msg":"HTTP request failed; retrying","url":"https://acme-staging-v02.api.letsencrypt.org/directory","error":"performing request: Get \"https://acme-staging-v02.api.letsencrypt.org/directory\": dial tcp: lookup acme-staging-v02.api.letsencrypt.org on 192.168.1.2:53: read udp 192.168.3.200:43614->192.168.1.2:53: i/o timeout"}
Jul 27 22:03:50 caddy caddy[128]: {"level":"error","ts":1658959430.204239,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"archive1.sidneyvega.net","issuer":"acme.zerossl.com-v2-DV90","error":"account pre-registration callback: performing EAB credentials request: Post \"https://api.zerossl.com/acme/eab-credentials-email\": dial tcp: lookup api.zerossl.com on 192.168.1.2:53: read udp 192.168.3.200:37190->192.168.1.2:53: i/o timeout"}
Jul 27 22:03:50 caddy caddy[128]: {"level":"error","ts":1658959430.2042603,"logger":"tls.obtain","msg":"will retry","error":"[archive1.sidneyvega.net] Obtain: account pre-registration callback: performing EAB credentials request: Post \"https://api.zerossl.com/acme/eab-credentials-email\": dial tcp: lookup api.zerossl.com on 192.168.1.2:53: read udp 192.168.3.200:37190->192.168.1.2:53: i/o timeout","attempt":1,"retrying_in":60,"elapsed":504.125273963,"max_duration":2592000}
5. What I already tried:
I’ve tried changing port numbers on the Caddy config file, I’ve tried moving the redirect of testing5 to archive1’s IP address example:
testing5.sidneyvega.net {
reverse_proxy 192.168.3.51
}
(This does work).
I’ve researched the problem with similar errors on Google, Reddit, Caddy Forum. Nothing I try works.
I’m suspecting there is maybe a limit to SSL certs? Or maybe I need a wildcard -I don’t know how to do this at all. I tried to learn how, but the documentation is not helping and I didn’t want to attempt it and break what is already working.
I’ve read the log file, but I don’t really know how to fix it because I’m not 100% sure what the problem is or where to go with it.
### 6. Links to relevant resources:
I do not have any further information.