Hi, There I have Error: SSL certificate problem: unable to get local issuer certificate
Closed this issue · 5 comments
yourchoice commented
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');
jason-engage commented
This does not look like something that belongs in this code. You should
check your set settings, because this is not needed to work.
On Fri, Jun 22, 2018 at 4:54 PM Florin Colotin ***@***.***> wrote:
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');
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#144>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEP0mG54HIO4-yPy8I_YQqIIf-StNZd0ks5t_LDEgaJpZM4UzYA2>
.
--
* Jason Shaw <jason@engageify.com>*, Developer
Tel. 647 783 7463 | Skype: jason.engage
en.gg | <http://en.gg/>Follow me on Facebook
<http://www.facebook.com/engagetheweb>
yourchoice commented
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) { ... }
jason-engage commented
Check this server settings. The code works fine. Or you can fork it and
link your composer to your own repo.
On Fri, Jun 22, 2018 at 7:08 PM Florin Colotin ***@***.***> wrote:
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 to that was necessary to override the method public function
call($url, $data, $type = self::TYPE_POST) { ... }
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#144 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEP0mArDJfNzq1HUVYbbrWee7vZsCbeTks5t_NAUgaJpZM4UzYA2>
.
--
* Jason Shaw <jason@engageify.com>*, Developer
Tel. 647 783 7463 | Skype: jason.engage
en.gg | <http://en.gg/>Follow me on Facebook
<http://www.facebook.com/engagetheweb>
wittfabian commented
Is the problem clarified?
wittfabian commented
No Answer, closed!
If the problem persists, reopen the issue.