2017-02-15 3 views
0

PHP curl funktioniert nicht für https-Anfragen auf Amazon Linux. Dies ist, was ich bekomme, wenn ich eine https-URL curl:cURL funktioniert nicht für HTTPS (Fehler: 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?) 

ich verschiedene Dinge ausprobiert, aber kann nicht herausfinden, was das Problem ist. Jede Hilfe wird sehr geschätzt.

+1

Überprüfen Sie, ob Sie die Erweiterung 'php_openssl' in php.ini aktiviert haben – RiggsFolly

+0

Die curl binary und das php curl Modul sind unabhängig voneinander. Das hat nichts mit PHP zu tun, da du curl von bash aus anrufst. – DanFromGermany

+0

Ja, aber das gleiche Zertifikat wird von beiden verwendet und das Problem war mit meinem Zertifikat. – umair

Antwort

Verwandte Themen