I’m trying to connect to the XProtect Server via SSL and I’m receiving a 500 Internal Server Error. The server is running on essential plus. Does the server need an SSL certificate? If so, which type of SSL certificate? Can I use a self signed certificate?
Here’s my python code:
import ssl
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((‘server_ip’, 443))
s = ssl.wrap_socket(s, keyfile=None, cert_reqs=ssl.CERT_NONE, certfile=None, server_side=False, ssl_version=ssl.PROTOCOL_TLS)
s.sendall(“POST /ManagementServer/ServerCommandService.svc HTTP/1.1\r\nHost: server_ip\r\nAuthorization: Basic username:password\r\nContent-Length: 2048\r\nConnection: close\r\n\r\n”)
while True:
new = s.recv(4096)
if not new:
s.close()
break
print new