• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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