I'm struggling with this error when trying to send a message via Twilio using their PHP library:
Fatal error: Uncaught exception Services_Twilio_TinyHttpException with message SSL certificate problem: self signed certificate in certificate chain thrown in F:pathositewilio-phpServicesTwilioTinyHttp.php on line 119
I'm using wamp on windows 7.
I have of course found all of the other posts about certificate errors. From what I can see, usually updating or adding the cacert.pem
file fixes the issue. However, even after doing this i'm still getting the same error.
Just as a sanity check here is exactly what i've done:
- Downloaded the latest certificates from here: http://curl.haxx.se/ca/cacert.pem.
- Placed this file in the following location
c:/wamp/certs/cacert.pem
- Updated php.ini as follows:
curl.cainfo = c:/wamp/certs/cacert.pem
- Restarted all wamp services including apache
And i'm still getting the same error. I have verified that I am editing the correct php.ini using phpinfo()
. I'm at a loss as to why it's still complaining.
Is there any way to verify 100% that my cacert.pem
file is being found and read? I've checked phpinfo()
and there is no mention of it in there. Should it say somewhere which, if any cacert.pem
it's using?
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…