• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Resolved php curl requests to SSL sites

Jonas N

Basic Pleskian
Plesk Certified Professional
Hi

I am trying to auto update the cacert.pem
i found this guide but but i the problem is that i can not find the panel.ini file
Websites are unable to make php curl requests to SSL sites

I do find a panel.ini.sample
is this the one i should edit ? and should i paste this in ?
PHP:
curlCertificatesUrl="http://curl.haxx.se/ca/cacert.pem"

Does it auto update the cacert ? 

Kind regards 
Jonas
 
Hi Jonas N,

as documented at your above mentioned KB - article, you should consider to add:
Code:
[php]
curlCertificatesUrl="http://curl.haxx.se/ca/cacert.pem"
... if you desire the "Daily Maintenance Script" to update "%plesk_dir%\Additional\PHPSettings\cacert.pem" daily.

So the answer to your question:
Does it auto update the cacert ?
... is: Yes! - If you set it up as suggested. :)
 
Hi UFHH01

Thx for the reply.
Some follow up questions.

I did only find the panel.ini.sample file and not the panel.ini file.
Should i rename that on to panel.ini and add the following in it

PHP:
curlCertificatesUrl="http://curl.haxx.se/ca/cacert.pem"

Is the update in daily maintenance scipt already there or do i need to add something in it ? 

//
Jonas
 
Should i rename that on to panel.ini
Plesk doesn't install a "panel.ini" on servers, where Plesk has been installed, but instead provides a SAMPLE, which you are able to use. You should consider to COPY a sample and never just rename it, as you would never have an original backup - file, in case that you messed up your current "panel.ini" with manual changes. ;)

and add the following in it
No! Your example code inside the forum CODE - brackets is still incorrect, why I suggested the correct example to be inserted inside your "panel.ini" at => #3. :)
 
Plesk doesn't install a "panel.ini" on servers, where Plesk has been installed, but instead provides a SAMPLE, which you are able to use. You should consider to COPY a sample and never just rename it, as you would never have an original backup - file, in case that you messed up your current "panel.ini" with manual changes. ;)


No! Your example code inside the forum CODE - brackets is still incorrect, why I suggested the correct example to be inserted inside your "panel.ini" at => #3. :)

Yes of course, Always use a copy... = ) What is wrong with the brackets ? Please show me the correct " code "

Many thx for the help so far ufhh01
 
Hi Jonas N,

o.k., as desired, I will show you again, WHAT should be inserted ( as you don't seem to like the idea to scroll up to => #3 :( )

Code:
[php]
curlCertificatesUrl="http://curl.haxx.se/ca/cacert.pem"
 
Sorry i totally miss understood you regarding that.
Once again many thx for the help. Will try this now..
 
Back
Top