2017-02-15 272 views
0

PHP curl不適用於Amazon Linux上的https請求。這是我所得到的,當我蜷縮的HTTPS URL:cURL不適用於HTTPS(錯誤:77)

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?) 

我曾嘗試不同的東西,但無法弄清楚是什麼問題。任何幫助都感激不盡。

+1

檢查您是否在php.ini – RiggsFolly

+0

的捲曲二進制和PHP的捲曲模塊啓用'php_openssl'擴展的影響無關。這與PHP無關,因爲您正在從bash調用curl。 – DanFromGermany

+0

是的,但兩者都使用相同的證書,問題出在我的證書上。 – umair

回答