I am getting this error message when I try to use
curl on Ubuntu 16.04:
curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt
I have downloaded cacert.pem and put the path to it in php.ini and set env variable
CURL_CA_BUNDLE but it still fails.
curl: (60) server certificate verification failed. CAfile: /var/www/cacert/cacert.pem CRLfile: none
I can view the site I am trying to curl from and it give no SSL errors and the cert is issued by GoDaddy.
I need curl in a PHP application where I can’t change the code (WordPress plugin) so using
--insecure doesn't help as I can't modify calling code.