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 yourserver. If they do not exist, get your server management provider to complete the following steps:


  1. 1. mkdir /usr/src/ca-certificates && cd /usr/src/ca-certificates
  2. 2. wget http://mirror.centos.org/centos/6/os/i386/Packages/ca-certificates-2015.2.6-65.0.1.el6_7.noarch.rpm
  3. 3. rpm2cpio ca-certificates-2015.2.6-65.0.1.el6_7.noarch.rpm | cpio -idmv
  4. 4. cp -pi ./etc/pki/tls/certs/ca-bundle.* /etc/pki/tls/certs/