简体   繁体   English

Nexmo API凭据错误

[英]Nexmo API credentials error

I am working on an sms feature by the Nexmo package. 我正在研究Nexmo软件包的短信功能。 However I encountered an error which is: 但是我遇到了一个错误:

Please provide Nexmo API credentials. 请提供Nexmo API凭据。 Possible combinations: api_key + api_secret, api_key + signature_secret, private_key + application_id, api_key + api_secret + private_key + application_id, api_key + signature_secret + private_key + application_id 可能的组合:api_key + api_secret,api_key + signature_secret,private_key + application_id,api_key + api_secret + private_key + application_id,api_key + signature_secret + private_key + application_id

在此输入图像描述

Though I already filled up my .env and config/nexmo.php files. 虽然我已经填满了我的.envconfig/nexmo.php文件。

I've just created a new Laravel project using the guide from the repo and got this new error message. 我刚刚使用repo中的指南创建了一个新的Laravel项目,并得到了这个新的错误消息。

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

The repo is working fine and just my xampp is the issue. 回购工作正常,只是我的xampp就是问题。

My solution was as simple as: Follow this link: http://curl.haxx.se/ca/cacert.pem Copy the entire page and save it in a: "cacert.pem" 我的解决方案很简单:请点击此链接: http ://curl.haxx.se/ca/cacert.pem复制整个页面并将其保存在:“cacert.pem”

Then in your php.ini file insert or edit the following line: curl.cainfo = "[pathtothisfile]\\cacert.pem" 然后在php.ini文件中插入或编辑以下行:curl.cainfo =“[pathtothisfile] \\ cacert.pem”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM