I'm using a UnifiOS device, the cloud key v2 pro, and talking to it using localhost (installing/running PHP on the device itself.)
Many test scripts work fine.
I'm trying the list_connected_users.php example script, and it does not work -- I get PHP CURL errors about self signed certificates.
Surprisingly, I have not turned on SSL verify, and I even add turning-off code right before the call, but it still fails:
root@Office-CloudKey-v2:/usr/local/src/observe-integration# php list_user_stats.php
PHP Notice: cURL error: SSL certificate problem: self signed certificate in /usr/local/src/observe-integration/UniFi-API-client/src/Client.php on line 155
PHP Notice: cURL error: SSL certificate problem: self signed certificate in /usr/local/src/observe-integration/UniFi-API-client/src/Client.php on line 189
and no output.
Sdding the CURLOPT_SSL_VERIFYHOST => false and CURLOPT_SSL_VERIFYPEER => false inline to the options on line 143, I get errors on future calls instead. What's re-setting these options?
I'm using a UnifiOS device, the cloud key v2 pro, and talking to it using localhost (installing/running PHP on the device itself.) Many test scripts work fine.
I'm trying the list_connected_users.php example script, and it does not work -- I get PHP CURL errors about self signed certificates. Surprisingly, I have not turned on SSL verify, and I even add turning-off code right before the call, but it still fails:
I get these errors:
and no output. Sdding the
CURLOPT_SSL_VERIFYHOST => false
andCURLOPT_SSL_VERIFYPEER => false
inline to the options on line 143, I get errors on future calls instead. What's re-setting these options?