SSL Authentication to Management Server

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

Username and password has to have the format “[BASIC]\username:password” in base64.

Maybe the sample Login .NET Soap can be of help, it is the wrong language but maybe still.

http://doc.developer.milestonesys.com/html/index.html?base=samples/logindotnetsoap.html&tree=tree_3.html

I’ll take a look at the sample and change my username and password format. Does the server need a SSL certificate?

No