用宝塔设置一个定时任务,用来定时完成任务的处理今天访问后台,发现提示计划任务没有执行。去宝塔面板看了一下,计划任务确实已经设置。于是查看执行日志,发现了这句话。curl: (60) Peer's Certificate has expired.,日志内容如下。

curl: (60) Peer's Certificate has expired.
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

这个问题也很简单https://www.jianshu.com/p/ca12b58e65c6按照这个操作了一波发现并无卵用,因为是证书问题尝试续签一下证书没想到就好了,之前的证书并未到期,很玄学记录一下避免后面的人踩坑

最后修改:2021 年 10 月 30 日
如果觉得我的文章对你有用,请随意赞赏