我不能通过Caddy使用curl连接到https站点服务器


I can't connect to a https site server by Caddy using curl

我正在尝试联系Caddy服务的https网站。即使使用

,我也会在尝试使用CURL获取内容时出现错误
CURLOPT_SSL_VERIFYPEER => false

无论如何,将其设置为false都会引起一定的担忧。

默认情况下,Caddy将与最小版本通信而我的主机使用的是TLS 1.1。如果你把它添加到你的cadyfile,它应该工作,如果这是你的问题。

example.ie {
tls {
   protocols tls1.0 tls1.2  #min max
 }
log access.log
errors err.log      
proxy / http://myexample.com:3032
}