Error sending SMS to user using laravel and nexmo - php

I'm using laravel to write a SMS application. So I' am also using the Nexmo API, I followed the tutorial on github,
But, when I try to send it on localhost. I got a curl SSL error:
RequestException in Promise.php line 135: <br/>
cURL error 60: SSL certificate problem: unable to get local issuer certificate
(see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Related

WooCommce Error: cURL error 60: SSL certificate problem: unable to get local issuer certificate.

I am integrating Woo-commerce API's in my Laravel 5.6 site using Woo-commerce official rest sdk. I made a link using authentication endpoint URL.Which is mention at here .
When user clicks the link it takes the user to Woo-commerce authentication page, where user login and Approve the request.
After approving the request it should take me to return url which i mention in the link.
Instead it shows me the following error.
Error: cURL error 60: SSL certificate problem: unable to get local issuer certificate.
I have tried this. But it's also not working.
I put the cacert.pem in '/etc/ssl/certs' directory,
also make the entry in php.ini like
curl.cainfo = "/etc/ssl/certs/cacert.pem". But it's not working.
After investigation I found the solution.
It does not work without ssl certificate.
I have install certificate using this link and it works.

Getting error while trying to implement google authentication in my local website

I'm getting following error while trying to implement google authentication in my local website.
Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)' in C:\xampp\htdocs\social_login_example\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:187.
I surfed the given URL but it didn't provide me any useful information to eliminate the error. What is this error and what can I do to remove it.
I'm using chrome web browser and PHP-5.6.8
$guzzleClient = new \GuzzleHttp\Client(['verify' => false]);
Guzzle version 6

Test twitters php api locally without ssl

I am trying to get twitter to post to my wall via php and the only way I can see to do it is by first having a auth tocken and to get that I need to ask twitter for it :) Facebook do it better ;p
So I am using ricardoper/twitteroauth to do this and when trying to get the tockens I get this back from hitting the curl file seen here: https://github.com/ricardoper/TwitterOAuth/blob/v2/src/Common/Curl.php
I am unsure if its because I'm running php locally or if its something to do with twitter.
<br />
<b>Fatal error</b>: Uncaught cURL Lib: [60] SSL certificate problem: unable to get local issuer certificate (TwitterOAuth\Exception\CurlException)
thrown in <b>C:\var\www\fbshare\TwitterOAuth\src\Common\Curl.php</b> on line <b>110</b><br />
How can i overcome this error, or be able to post to twitter, but I believe this script does that.
Turns out that the repo I was using's pem wasn't supporting ssl on the local host.
I download a local ssl certificate from here
Replaced line 64 with CURLOPT_CAINFO => '/var/www/cacert.pem', which was the downloaded pem from the link given above and now I can access ssl locally :)

Services_Twilio_TinyHttpException in TinyHttp.php line error in Laravel

I am trying to send an sms using Twilio driver in Laravel. For that I did all the steps from http://learninglaravel.net/how-to-sendreceive-text-messages-in-laravel/link but still I am getting the error page as
Services_Twilio_TinyHttpException in TinyHttp.php line 119: SSL
certificate problem: self signed certificate in certificate chain
in TinyHttp.php line 119 at Services_Twilio_TinyHttp->__call('post',
array('/2010-04-01/Accounts/AC6bf1e097ae4405b88d7df82678c29d84/Messages.json',
array('Content-Type' => 'application/x-www-form-urlencoded'),
I don't know what's going wrong.

cURL ERROR: 0: NSS: client certificate not found

I'm trying to connect to a API using SOAP (nusoap client), but when i try and make a request I get this error:
wsdl error: Getting https://example.com/webservices.asmx?WSDL - HTTP ERROR: cURL ERROR: 0: NSS: client certificate not found (nickname not specified)
The API does not require a certificate to connect to the API, but for some reason I am getting an error with a none existent certificate. This code works on my VM, but not on the live site, does anyone know why this error is occurring?
Thanks
Rob

Categories