Be aware my problem was that I had two php.ini files and I need to do this in both of them. Inside of Apache directory C:\wamp64\bin\apache\apache2.4.27\conf, enable mod_ssl in nfĮnable php_openssl.dll in php.ini. Inside of C:\wamp64\bin\apache\apache(version)\modules, make sure the file mod_ssl.so is there Put it inside of C:\wamp64\bin\php\your php version\extras\ssl I had this issue for hours and not even the correct answer was doing it for me, because i was editing the wrong php.ini file because the question was answered to XAMPP and not for WAMP users, even though the question was for WAMP. Where do I add options to my cURL? Apparently not through the command line, since my CLI doesn't find the command "curl_setopt"Īttention Wamp/Wordpress/windows users. '/cacert.pem') Ĭurl_setopt($process, CURLOPT_SSL_VERIFYPEER, true) Which suggests that I add these lines to my cURL options: curl_setopt($process, CURLOPT_CAINFO, dirname(_FILE_). I have also tried this fix: How to fix PHP CURL Error 60 SSL I have the ssl_module enabled in Apache, and I have php_curl enabled in my php.ini. Yet, even after restarting my server several times and changing the path, I get the same error message. This is the part in my php.ini: curl.cainfo = "C:\Windows\cacert.pem" I searched a lot on Google and lots of people are suggesting that I download this file: cacert.pem, put it somewhere and reference it in my php.ini. $stripe = Stripe::make(env('STRIPE_PUBLIC_KEY')) This is the code I am running: public function chargeStripe() I am trying to send an API request using Stripe but get the error message:ĬURL error 60: SSL certificate problem: unable to get local issuer certificate
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |