• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved cURL error 77: error setting certificate verify locations - Windows

cat24max

New Pleskian
I just reinstalled my plesk and had todays issue with the LE encryption - dev fixed it and it worked without cURL SSL verification.

But now I'm trying to get my Laravel apps back up and running again, using cURL. I can't connect to any SSL-secured URL because of this error

cURL error 77: error setting certificate verify locations:
CAfile: C:\Inetpub\vhosts\cacert.pem
CApath: none (see libcurl - Error Codes)

And yes, the directory is changed. There is a cacert.pem in Plesks default directory and this one in /vhosts and they've both been replaced with new one's.

Is there any way to fix this annoying issue (I'm running Win 2012 and 17.0.17) or disable the check (I know, not very smart, but if it's the only fix.
 
Try to specify curl cacert.pem in %plesk_dir%admin\conf\panel.ini:

Code:
[php]
curlCertificatesUrl="http://curl.haxx.se/ca/cacert.pem"
 
Hello,
let's try to resolve the issue step by step.

First of all, we should understand if the problem is with CURL or with cacert.pem or with Plesk logic that updates this file.
For example, you are using PHP 7.0 on your site with your application installed.

in %plesk_dir%\Additional\PleskPHP70\php.ini there should be:
[curl]
curl.cainfo="C:\Program Files (x86)\Plesk\Additional\PHPSettings\cacert.pem"

please download manually latest cacert.pem from http://curl.haxx.se/ca/cacert.pem and put it in %plesk_dir%\Additional\PHPSettings\cacert.pem

now, check if your application is working or not.

If application is still not working, then maybe there are some issues with PHP and CURL, try to check your application with different versions of PHP.

In your sample output, I am a bit confused with string "CAfile: C:\Inetpub\vhosts\cacert.pem", Plesk never configures PHP to use such path for cacert.pem, why it is used from this place?
 
In your sample output, I am a bit confused with string "CAfile: C:\Inetpub\vhosts\cacert.pem", Plesk never configures PHP to use such path for cacert.pem, why it is used from this place?
This was because I tried a different path (file permissions).

I changed it back to the original path and redownloaded the file. Didn't work.
I uninstalled PHP 7.1 and reinstalled it, and now (for some reason) it seems to work.
Will have to do some more testing, it looks like it's working, though,
 
Try to specify curl cacert.pem in %plesk_dir%admin\conf\panel.ini:

Code:
[php]
curlCertificatesUrl="http://curl.haxx.se/ca/cacert.pem"
Had the same problem, this solution worked for me! Thanks Igor! Don't forget to run the DailyMaintenance script so that Plesk can update its cacert.pem ;)
 
Back
Top