Curling an SSL website can fail on certain servers. The error string is:
curl: (77) Problem with the SSL CA cert (path? access rights?)
The error is due to corrupt or missing SSL chain certificate files in the PKI directory. You’ll need to make sure the files /etc/pki/tls/certs/ca-bundle.crt and /etc/pki/tls/certs/ca-bundle.trust.crt (on CentOS) exist on your server. If they do not exist, get your server management provider to complete the following steps:
Hope this is helpful.