Anyways, I am having a rather frustrating error. Since all of this is now forked, I am referring to pliablepixels repo not the newer forked version(s).
I am on debian 11 python 3.9.2 and openssl 1.1.1k (standard debian stable stuff)
I have zmeventserver with machine learning hooks running and that seems to work ok from what I can tell, it has its own user in zoneminder 'objectuser' and the websocks listens on port 9000 with a self signed certificate. runs great.
After installing the mlapi I assigned it its own user 'ml_user' in zoneminder and created a user by running mlapi_dbuser.py as per the directions
When I looked at the zoneminder logs after it was running I got this error whenever an object was spotted by mlapi on the live feed for zm_detect.py @ line 405
Code: Select all
Error with remote mlapi:HTTPSConnectionPool(host='192.168.1.1', port=5000): Max retries exceeded with url: /api/v1/login (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)')))
Code: Select all
# python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>> ssl.get_server_certificate(('192.168.1.1',5000))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.9/ssl.py", line 1484, in get_server_certificate
with context.wrap_socket(sock) as sslsock:
File "/usr/lib/python3.9/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.9/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/lib/python3.9/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)
Code: Select all
>>> ssl.get_server_certificate(('192.1681.1',9000))
'-----BEGIN CERTIFICATE-----\certificate gibberish\n-----END CERTIFICATE-----\n'
>>> ssl.get_server_certificate(('192.168.1.1',443))
'-----BEGIN CERTIFICATE-----\certificate gibberish\n-----END CERTIFICATE-----\n'
Any help is appreciated, thanks