cURL error 60: SSL certificate While using Nexmo SMS sending in Symfony 3.4

This is the first time I ask a question on StackOverflow and I hope I get the right answer.
I’m working on a project on Symfony 3.4 and I installed Nexmo/Client Bundle in an attempt to send SMS

The scenario is I want to send an SMS after validating a cart

Here is the code I used in the Controller when after inserting the database :

     $basic  = new NexmoClientCredentialsBasic('************', '*************');
            $client =new NexmoClient($basic);
    $message = $client->message()->send([
                'to' => '******',
                'from' => 'Arbi',
                'text' => 'Merci pour votre fidelite'
            ]);

Here is the error I get :

> cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

I’ve seen a problem of someone else with a similar problem, they suggested to him to download “cacert.pem” and add it to “curl.cainfo” in the file “php.ini” but that doesn’t work

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *