PHP cURL caPath : none #1394
Unanswered
pcgrejaldo
asked this question in
Linux
Replies: 1 comment
-
any fix? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I've been trying to figure out how to make PHP (7.4.18) cURL work with SSL and I've tried various
php.ini
settings but I'm stumped. Runningcurl
on cli runs fine like:/home/linuxbrew/.linuxbrew/bin/curl -IL https://wp.test
with response:So looks good. However, when I try to use
php-curl
, withI'm getting the following error:
CApath
seems to be not picking up the system's SSL certs dir when using homebrew'sphp
but when I add the curl option:then it works:
Current
openssl
cert locations:Already tried changing some
php.ini
config related tocurl
andopenssl
like changingcurl.cainfo
to...and commenting out:
...but all no dice.
So question, how do I set
CApath
globally for Homebrew PHP without settingcurl_setopt( $handle, CURLOPT_CAPATH, '/etc/ssl/certs' );
to allcurl
calls? Or any other suggestions?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions