Lrnt
Basic Pleskian
Hi everyone,
I have got a weird cURL error 60.
I am on Debian 9.13 (Plesk Obsidian 18.0.38).
I don't use any CMS nor any PHP Framework (this is home made code).
I make a cURL call from my back office to perform an update in background in PHP like this:
Until now, it worked like a charm, but I noticed today that cURL return an error 60, which means* :
I use Let's Encrypt certificate and never had any problem with this.
To fix that, I change my code and now use:
Please note that all my scheduled tasks in Plesk (using Fetch an URL) are working properly.
But I am scared that this cURL error may generate other error elsewhere.
Do you think it is related to Plesk? Or to Let's Encrypt?
Do you have any idea to make my cURL call working like before?
Thanks.
I have got a weird cURL error 60.
I am on Debian 9.13 (Plesk Obsidian 18.0.38).
I don't use any CMS nor any PHP Framework (this is home made code).
I make a cURL call from my back office to perform an update in background in PHP like this:
Code:
// create curl resource
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, "https://www.domain.tld/file.php?action=DoSomething");
//return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// $output contains the output string
$curlOutput = curl_exec($ch);
// close curl resource to free up system resources
curl_close($ch);
Until now, it worked like a charm, but I noticed today that cURL return an error 60, which means* :
*According the documentation libcurl - Error CodesCURLE_PEER_FAILED_VERIFICATION (60) The remote server's SSL certificate or SSH md5 fingerprint was deemed not OK. This error code has been unified with CURLE_SSL_CACERT since 7.62.0. Its previous value was 51.
I use Let's Encrypt certificate and never had any problem with this.
To fix that, I change my code and now use:
Code:
file_get_contents("https://www.domain.tld/file.php?action=DoSomething")
Please note that all my scheduled tasks in Plesk (using Fetch an URL) are working properly.
But I am scared that this cURL error may generate other error elsewhere.
Do you think it is related to Plesk? Or to Let's Encrypt?
Do you have any idea to make my cURL call working like before?
Thanks.