Hi,
I have a query with using cURL (SSL version) with PHP + cPanel. Using cURL with SSL you supposedly need to provide a bundle of trustable root certificates.
Using the following code:
I am not providing a certificate bundle and it still seems to work. So that's weird for starters?
Regardless I provide a bundle from /etc/pki/tls/certs/ca-bundle.crt:
Now my question is, is it safe to use the ca-bundle.crt in this directory? Does cPanel update this as and when required?
Thanks
I have a query with using cURL (SSL version) with PHP + cPanel. Using cURL with SSL you supposedly need to provide a bundle of trustable root certificates.
Using the following code:
PHP:
curl_setopt($curlSession, CURLOPT_SSL_VERIFYPEER, 1);
Regardless I provide a bundle from /etc/pki/tls/certs/ca-bundle.crt:
PHP:
curl_setopt($curlSession, CURLOPT_CAINFO, '/etc/pki/tls/certs/ca-bundle.crt');
Thanks