<filename>test/tcpserver.py
#!/usr/local/bin/python3
import socket, ssl

TCP_IP = '192.168.0.10'
TCP_PORT = 5005
BUFFER_SIZE = 20  # Normally 1024, but we want fast response

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((TCP_IP, TCP_PORT))
s.listen(1)

conn, addr = s.accept()
wrapper = ssl.wrap_socket(conn, 
			  server_side=True,
			  certfile="/root/ca/intermediate/certs/www.web.arcnet.cert.pem",
			  keyfile="/root/ca/intermediate/private/www.web.arcnet.key.pem")
print('Connection address:', addr)
while 1:
   # data = conn.recv(BUFFER_SIZE)
    data = wrapper.recv(BUFFER_SIZE)
    if not data: break
    print("received data:", data.decode())
    conn.send(data)  # echo
conn.close()

<filename>test/tcpserver.py
#!/usr/local/bin/python3
import socket, ssl

TCP_IP = '192.168.0.10'
TCP_PORT = 5005
BUFFER_SIZE = 20  # Normally 1024, but we want fast response

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((TCP_IP, TCP_PORT))
s.listen(1)

conn, addr = s.accept()
wrapper = ssl.wrap_socket(conn, 
			  server_side=True,
			  certfile="/root/ca/intermediate/certs/www.web.arcnet.cert.pem",
			  keyfile="/root/ca/intermediate/private/www.web.arcnet.key.pem")
print('Connection address:', addr)
while 1:
   # data = conn.recv(BUFFER_SIZE)
    data = wrapper.recv(BUFFER_SIZE)
    if not data: break
    print("received data:", data.decode())
    conn.send(data)  # echo
conn.close()

#!/usr/local/bin/python3 # Normally 1024, but we want fast response # data = conn.recv(BUFFER_SIZE) # echo