Skip to content

Commit 2c79cba

Browse files
committed
Add note about CA Certificates + Guzzle to README
1 parent 7f3a98b commit 2c79cba

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,26 @@ $application = $client->applications()->update([
356356
], '1a20a124-1775-412b-b623-e6985f4aace0');
357357
```
358358

359+
## Troubleshooting
360+
361+
Some users have issues making requests due to the following error:
362+
363+
```
364+
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)'
365+
```
366+
367+
This is due to some PHP installations not shipping with a list of trusted CA certificates. This is a system configuration problem, and not specific to either cURL or Nexmo.
368+
369+
> *IMPORTANT*: In the next paragraph we provide a link to a CA certificate bundle. Nexmo do not guarantee the safety of this bundle, and you should review it yourself before installing any CA bundle on your machine
370+
371+
To resolve this issue, download a list of trusted CA certificates (e.g. the [curl](https://curl.haxx.se/ca/cacert.pem) bundle) and copy it on to your machine. once this is done, edit `php.ini` and set the `curl.cainfo` parameter:
372+
373+
```
374+
# Linux/MacOS
375+
curl.cainfo = "/etc/pki/tls/cacert.pem"
376+
# Windows
377+
curl.cainfo = "C:\php\extras\ssl\cacert.pem"
378+
```
359379

360380

361381
API Coverage

0 commit comments

Comments
 (0)