PHP curl is not working for https requests on Amazon Linux. This is what I get when I curl an 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?)
I have tried different things but cannot figure out what the issue is. Any help will be much appreciated.