Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : cUrl certificate



Threaded Mode | Print  

 cUrl certificate (1 Replies, Read 3356 times)
Chilion
Group: Member
Post Group: Newbie
Posts: 2
Status:
1. OS Name with Version
Mac OS X 10.11.3 El Capitan

2. AMPPS Version
4.6.7

Optional:
3. Logs
From the Laravel log (which I'm using)
Code
GuzzleHttp\Ring\Exception\RingException' with message 'cURL error 60: SSL certificate problem

No errors in the Apache log
4. Steps to reproduce the error
Open up my Laravel package and use Guzzle for a cUrl post request to Slack.
5. Expected Result
To work :-D
6. Your modified apache, php or mysql conf files(if you have changed and can share with us)
I have switch on the following extension beside the default:
- mcrypt
- tokenizer
- ctype
- openssl
IP: --   

cUrl certificate
Chilion
Group: Member
Post Group: Newbie
Posts: 2
Status:
I fixed it an posted it on Stack Overflow as a question/answer.

See the link:
http://stackoverflow.com/questions/36303002/curl-certificate-error-on-ampps/36303080#36303080

For future readers the answer:

There are 2 possible solutions

Require Guzzle 4 in your composer.json so it won't check for this things
OR

Grab the certificate from https://curl.haxx.se/ca/cacert.pem (copy the whole page)
Save it somewhere on your system
Edit the php.ini and find the following rule:

curl.cainfo = this must be an exact path
Change it to contain the exact path to your .pem file.
Remove the hash (#) to un-comment it, save the file
Restart apache, fixed
This works also for xampp, wamp, mamp and what else there is in webservers
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 30, 2024, 9:24 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.038