Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to disable SSL #2

Open
mannigit opened this issue Aug 24, 2017 · 3 comments
Open

how to disable SSL #2

mannigit opened this issue Aug 24, 2017 · 3 comments

Comments

@mannigit
Copy link

I am using on XAMP installed in local machine. I want to disable the SSL either via library function or any how.

I am getting below error.

Fatal error: Uncaught exception 'Exception' with message 'Curl failed with response: 'SSL certificate problem: unable to get local issuer certificate'.' in C:\xampp\htdocs\PHPCodes\Test\social\includes\paystack\Paystack.php:701 Stack trace: #0 C:\xampp\htdocs\PHPCodes\Test\social\includes\paystack\Paystack.php(358): PaystackHttpResponse->wrapUp() #1 C:\xampp\htdocs\PHPCodes\Test\social\includes\paystack\Paystack.php(436): PaystackHelpersCaller->callEndpoint(Array, Array, Array) #2 [internal function]: PaystackHelpersRouter->{closure}(Array) #3 C:\xampp\htdocs\PHPCodes\Test\social\includes\paystack\Paystack.php(391): call_user_func_array(Object(Closure), Array) #4 C:\xampp\htdocs\PHPCodes\Test\social\includes\verify.php(37): PaystackHelpersRouter->__call('verify', Array) #5 C:\xampp\htdocs\PHPCodes\Test\social\includes\verify.php(37): PaystackHelpersRouter->verify(Array) #6 {main} thrown in C:\xampp\htdocs\PHPCodes\Test\social\includes\paystack\Paystack.php on line 701

used the solution
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);

from https://developers.paystack.co/discuss/58fa2b1616c90d2f0087be27

but not working.

@mannigit
Copy link
Author

mannigit commented Sep 1, 2017 via email

@ibrahimlawal
Copy link
Member

Glad to be of assistance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants