Articles in this section

Various Plesk operations fail: error setting certificate verify locations: CApath: none

Plesk for Windows Plesk for Linux kb: technical ABT: Group A

Applicable to:

  • Plesk for Windows
  • Plesk for Linux

Symptoms

  • An error like these appears in the extensions catalog, backup scheduler, during Plesk updates, or while running the Daily Maintenance task

    error setting certificate verify locations: CAfile: C:\Program Files (x86)\Plesk\admin\conf\cacert.pem CApath: none

    Internal server error

  • Installing WordPress using the Applications menu fails

    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=Plesk

    Sharing Violation

The errors above may cause these symptoms

  • WordPress packages that are 0 size in %plesk_dir%var\modules\wp-toolkit\packages

  • Domain log files larger than the log rotation limit

Cause

The CA certificate, cacert.pem, is corrupted or missing, which prevents connections from being established.

Resolution

Download and install the missing file.

   
Windows
   
  1. Connect to the server over RDP

  2. Download cacert.pem from the cURL website: http://curl.haxx.se/ca/cacert.pem

  3. Place the file inside %plesk_dir%admin\conf.

  4. Make sure that these directives in %plesk_dir%admin\conf\php.ini have the right path to cacert.pem

    curl.cainfo="C:\Program Files (x86)\Plesk\admin\conf\cacert.pem"
    openssl.cafile="C:\Program Files (x86)\Plesk\admin\conf\cacert.pem"

   
Linux
   
  1. Connect to the server over SSH

  2. Run this command to download and install the CA certificate from the official cURL website

    # wget https://curl.haxx.se/ca/cacert.pem && mv cacert.pem /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.