pimax/fb-messenger-php

Hi, There I have Error: SSL certificate problem: unable to get local issuer certificate

Closed this issue · 5 comments

Error:

SSL certificate problem: unable to get local issuer certificate

Is there possible to set some options external for CURL ?

I resolved adding in your curl this line:
curl_setopt($process, CURLOPT_CAINFO, DATA_DIR.'cert/cacert.pem');

Default on my case, not worked.

If I set in php.ini :

curl.cainfo ="path to cacer.pen file";
openssl.cafile = "path to cacer.pen file";

then works, but I want just for the current project.

I tried and :

ini_set('curl.cainfo', $this->cacertPath);
ini_set('openssl.cafile', $this->cacertPath);

but seems to not work,

Finaly I found solution using culr_setopt CURLOPT_CAINFO :

curl_setopt($process, CURLOPT_CAINFO, $this->cacertPath);

But to do that, was necessary to override the method public function call($url, $data, $type = self::TYPE_POST) { ... }

Is the problem clarified?

No Answer, closed!
If the problem persists, reopen the issue.