Obviously it's still the certificate issue. Try using the latest CA certificates extracted from Mozilla. Simply download it, place it somewhere or replace your current
cacert.perm, add the path to your certificate to
curl.cainfo in your
php.ini, and then try again. You might want to comment
openssl.capath for now.
Update for 02/20/2018:
openssl.cafile paths looks fine, assuming that is the correct path to the
cacert.pem you downloaded. However your
ini_cafile is empty when you run
openssl_get_cert_locations(). It should reflect whatever you set in your
openssl.cafile. You will need to restart your web server (Apache/nginx) after making changes to your
php.ini to take effect. After restarting check the
openssl.cafile value by running
phpinfo(), and make sure it is correct.
I'm not sure why the default cert directory is like that. Maybe a previous installation of Open SSL? Either way, it's an non-existent default path for me as well but it doesn't matter since my
ini_cafile shows the same value I defined in
openssl_get_cert_locations() shows the list of places it will be looking for the certificates, so if the correct one is among the them, I think it should be fine.