View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0015854||CentOS-7||curl||public||2019-02-21 20:46||2020-09-22 15:18|
|Target Version||Fixed in Version|
|Summary||0015854: libcurl fails to return certinfo data|
|Description||Libcurl fails to return certinfo data. |
This was first discovered while completing curl requests through PHP wherein the certinfo array is simply empty. We brought this issue up with the PHP binary provider, Plesk, in their forum here: https://talk.plesk.com/threads/php-libcurl-fails-to-populate-certinfo-array.351354/
As you can see there IgorG completes a few tests by creating a C app to see if *it* can get certinfo from libcurl -- it returns no certificate info, just like from PHP.
Therefore this appears to be a bug in the CentOS 7 release of libcurl.
|Steps To Reproduce||You can see the link here for STR both with PHP and C: https://talk.plesk.com/threads/php-libcurl-fails-to-populate-certinfo-array.351354/|
|Tags||No tags attached.|
|We are affected by this bug as well. As a result in PHP curl_getinfo($handle, CURLINFO_CERTINFO) is returning an empty array.|
Please run `yum update`. CentOS 7.8 is the only supported version of CentOS 7 and 7.6 is two whole point releases behind.
I ran the test php script in the plesk link and it works on 7.8.
We do have version 7.8.2003
I tried a fresh install and still the same problem - curl_getinfo($handle, CURLINFO_CERTINFO) is empty (PHP 7.3).
Then i upgraded curl using this: https://www.mysterydata.com/update-install-latest-curl-version-on-rhel-8-rhel-7-centos-7-8-cwp-vestacp-cpanel-plesk/ and it started to work.