2 years ago

#70205

test-img

Chris Walsh

php_info() showing curl.cainfo path with three X's at end but this isn't how it's set in php.ini

Background: We've got a WAMP stack running Moodle and our H5P Hub access is failing with

unable to get local issuer certificate

which is related to curl not being able to verify certificates from HTTPS requests because (I believe) it doesn't have access to the required trusted CA root certificates.

Issue: We've taken a CA Bundle (cacert.pem) and placed it in E:\wamp64\bin\php\php7.4.23\extras\ssl and updated php.ini with the following: curl.cainfo=E:/wamp64/bin/php/php7.4.23/extras/ssl/cacert.pem and restarted Apache.

A look at php_info() however shows the value with three X's at the end:

curl configuration settings in php_info()

i.e. E:/wamp64/bin/php/php7.4.23/extras/ssl/cacert.pemXXX

Suffice to say, the opening issue hasn't been resolved. Can anyone explain why the XXX appears and how I can resolve it?

Thanks, Chris

php

curl

wamp

0 Answers

Your Answer

Accepted video resources