Applicable to:
- Plesk Onyx for Windows
- Plesk for Windows
- Plesk for Linux
Symptoms
-
The Extensions Catalog tab shows one of the following error messages:
PLESK_WARN: error setting certificate verify locations: CAfile: C:\Program Files (x86)\Plesk\admin\conf\cacert.pem CApath: none
PLESK_WARN: Internal server error
-
The same error may occur during Plesk update:
PLESK_INFO: STDERR: Error in cURL request: error settings certificate verify locations:
CAfile: C:\Program Files (x86)\Plesk\admin\conf\cacert.pem
CApath: none -
A WordPress installation via the Applications menu fails with one of the following errors:
PLESK_ERROR: Error: The following error has occurred during the download of application:
HTTP Error (0) https://cdn.apscatalog.plesk.com/all-app/WordPress.org/WordPress/5.2.1-273.aps?packager=PleskPLESK_ERROR: Sharing Violation
-
Some WordPress packages can be 0 size in
%plesk_dir%var\modules\wp-toolkit\packages
-
Backup scheduler for domains at Domains > example.com > Backup Manager > Schedule may return the following error:
PLESK_INFO: Server Error
500
PleskException
error setting certificate verify locations: CAfile: C:\Program Files (x86)\Plesk\admin\conf\cacert.pem CApath: none
Type PleskException
Message error setting certificate verify locations: CAfile: C:\Program Files (x86)\Plesk\admin\conf\cacert.pem CApath: none
File Catalog.php
Line 83 -
Domains > example.com > Logs > Manage Log Files shows files with sizes bigger than the limit in Log Rotation. For example a file with 4Gb.
-
Running Daily Maintenance manually shows why the Daily Maintenance was failing, which is in charge of rotating logs:
C:\> C:\Users\Administrator>"%plesk_dir%\admin\bin\php.exe" -dauto_prepend_file="" -ddisplay_errors=on "%plesk_dir%\admin\plib\DailyMaintainance\script.php" daily
error setting certificate verify locations:
CAfile: C:\Program Files (x86)\Plesk\admin\conf\cacert.pem
CApath: none
ERROR: Zend_Http_Client_Exception: Error in cURL request: error setting certificate verify locations:
CAfile: C:\Program Files (x86)\Plesk\admin\conf\cacert.pem
CApath: none (Curl.php:455)
Cause
The cacert.pem
file located in %plesk_dir%admin\conf
is corrupted or missing.
Resolution
-
Connect to the Plesk server via RDP
-
Download the
cacert.pem
file from the curl website. -
Put the downloaded
cacert.pem
file to%plesk_dir%admin\conf
. -
Ensure that the following directives in
%plesk_dir%admin\conf\php.ini
contains a valid path to thecacert.pem
CONFIG_TEXT: curl.cainfo="C:\Program Files (x86)\Plesk\admin\conf\cacert.pem"
openssl.cafile="C:\Program Files (x86)\Plesk\admin\conf\cacert.pem"
-
Connect to the server using SSH.
-
Download the CA certificate from the official cURL website
# wget https://curl.haxx.se/ca/cacert.pem
- Replace
/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
file# mv cacert.pem
/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
Comments
0 comments
Please sign in to leave a comment.