put.io-api-v2 icon indicating copy to clipboard operation
put.io-api-v2 copied to clipboard

SSL certificate problem: Self signed certificate

Open monxas opened this issue 7 years ago • 3 comments

Hey, I've used your library in the past and it worked great. I'm Trying it again for a new project and I can't connect. The error I get is:

Uncaught PutIO\Exceptions\RemoteConnectionException: SSL certificate problem: self signed certificate in certificate chain in putio/vendor/nicoswd/putio/src/PutIO/Engines/HTTP/CurlEngine.php:97

I've checked the code and I also changed

private $verifyPeer = \true;

to false in CurlEngine.php

monxas avatar Mar 30 '18 11:03 monxas

I went back to this, still an error. Any chance this can get some attention?

monxas avatar Sep 04 '19 10:09 monxas

Hey @monxas!

Can you try commenting out line 45 in CurlEngine.php and see if that helps?

//    $options[CURLOPT_CAINFO]         = $this->getCertPath();

nicoSWD avatar Sep 04 '19 10:09 nicoSWD

Didn’t help. I tried more stuff, I keep getting the exact same error.

El 4 sept 2019, a las 12:36, Nico Oelgart [email protected] escribió:

 Hey @monxas!

Can you try commenting out line 45 in CurlEngine.php and see if that helps?

// $options[CURLOPT_CAINFO] = $this->getCertPath(); — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

monxas avatar Sep 04 '19 11:09 monxas