• 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 CA Certificate Problem

weelow

Basic Pleskian
I am using plesk on a windows server and for CURL to make successful SSL connections the CURL CA certificate needs to be uptodate

It reads from this location
C:\Program Files (x86)\Plesk\Additional\PHPSettings\

I manually updated the certificate to the latest version from the CURL website. However the CA certificate gets replaced by an older version on a daily basis. There is no corn job specifically set to do that but I think one of Plesk maintenance scripts are doing that. I want it to either use the latest certificate from the source or stop replacing the new certificate.

Anyone know how to do that?
 
https://support.plesk.com/hc/en-us/...unable-to-make-php-curl-requests-to-SSL-sites

Since 12.5 on Windows, the URL, from which cacert.pem is downloaded, can be specified in panel.ini file:

Code:
[php]
curlCertificatesUrl="http://curl.haxx.se/ca/cacert.pem"

You can find panel.ini in %plesk_dir%\admin\conf location
By default there is no such file (only panel.ini.sample), you can copy it with name panel.ini and add appropriate setting.

In this case Plesk will download CA certs from specified URL.
 
https://support.plesk.com/hc/en-us/...unable-to-make-php-curl-requests-to-SSL-sites

Since 12.5 on Windows, the URL, from which cacert.pem is downloaded, can be specified in panel.ini file:

Code:
[php]
curlCertificatesUrl="http://curl.haxx.se/ca/cacert.pem"

You can find panel.ini in %plesk_dir%\admin\conf location
By default there is no such file (only panel.ini.sample), you can copy it with name panel.ini and add appropriate setting.

In this case Plesk will download CA certs from specified URL.

I did that before using the plesk panel.ini extension, and it didnt work. The certificate file was still being replaced by an older certificate.
Anyway i followed your method and restarted the plesk server. lets see what happens tomorrow. I will update the thread accordingly.
Thanks for your help
 
Back
Top