Art-of-WiFi / UniFi-API-client

A PHP API client class to interact with Ubiquiti's UniFi Controller API
MIT License
1.09k stars 217 forks source link

cURL errors on script run #186

Closed FunkyMonk8111 closed 1 year ago

FunkyMonk8111 commented 1 year ago

Finally got the script the list_user_stats.php script to run, I get the following errors:

PHP Notice: cURL error: SSL certificate problem: self signed certificate in /root/vendor/art-of-wifi/unifi-api-client/src/Client.php on line 155 PHP Notice: cURL error: SSL certificate problem: self signed certificate in /root/vendor/art-of-wifi/unifi-api-client/src/Client.php on line 189

Can you give my any insights into this? I wasnt aware of a SSL certificate..

malle-pietje commented 1 year ago

Did you read the README file? I am guessing you missed this part: https://github.com/Art-of-WiFi/UniFi-API-client#important-notes

Specifically: image

malle-pietje commented 1 year ago

Feel free to reopen the issue if needed.

FunkyMonk8111 commented 1 year ago

I think I got it figured out, thanks..

FunkyMonk8111 commented 1 year ago

Since its not production, I bet there isnt a certificate so I switched it false and it seems to be working, thanks again for pointing that out.