zmNinja works, but is my API or Nginx proper?
Posted: Thu Aug 26, 2021 8:58 pm
zmNinja works well on home network (iOS and Desktop) but some of these tests below leave me wondering if there maybe be some underlying issues with my server. And since zmNinja is working, do I still need to manually create API keys via curl?
FYI, I had changed my Apache2 port from 80 because I thought it was the right thing to do for local security with tunneling remote devices via VPN.
[url]http://192.168.X.xx:XxXx/zm/api/[/url] returns CakePHP Error:
[url]http://192.168.X.xx:XxXx/zm/api/host/getVersion.json[/url] returns:
returns: curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
returns: {"success":false,"data":{"name":"Not Authenticated","message":"Not Authenticated","url":"\/zm\/api\/configs.json","exception":{"class":"UnauthorizedException","code":401,"message":"Not Authenticated"}}}
Zoneminder 1.36.5 Installed as per it's own Installation Guide "Easy Way: Ubuntu 18.04 (Bionic)"
Xubuntu 20.04.3
Thanks for a great app and great support.
Chris
FYI, I had changed my Apache2 port from 80 because I thought it was the right thing to do for local security with tunneling remote devices via VPN.
[url]http://192.168.X.xx:XxXx/zm/api/[/url] returns CakePHP Error:
[url]http://192.168.X.xx:XxXx/zm/api/monitors.json[/url] returns all my monitors parameters.The requested address '/zm/api/' was not found on this server.
[url]http://192.168.X.xx:XxXx/zm/api/host/getVersion.json[/url] returns:
Version 1.36.5 & API Version 2.0
Code: Select all
curl -XPOST -c cookies.txt -d "user=admin&pass=XxXxXxXx&stateful=1" https://192.168.X.xx:XxXx/zm/api/host/login.json
Code: Select all
curl -XGET http://192.168.X.xx:XxXx/zm/api/configs.json
Zoneminder 1.36.5 Installed as per it's own Installation Guide "Easy Way: Ubuntu 18.04 (Bionic)"
Xubuntu 20.04.3
Thanks for a great app and great support.
Chris