php curl在Amazon Linux上不适用于HTTPS请求。这就是我卷曲https url时得到的:
curl -v https://google.com
Rebuilt URL to: https://google.com/
Trying 172.217.3.174...
Connected to google.com (172.217.3.174) port 443 (#0)
Initializing NSS with certpath: sql:/etc/pki/nssdb
Closing connection 0
curl: (77) Problem with the SSL CA cert (path? access rights?)
我尝试了不同的事情,但无法弄清楚问题是什么。任何帮助将不胜感激。
我的证书文件不正确。它是从http://curl.haxx.se/ca/cacert.pem下载的。必须将http更改为https。