I am trying to learn python and for a class I need to create an assignment. This assignment states that I need to create a server with a self-signed certificate. I need to let this server listen on port "int(sys.argv[1])" abd send the result of the linux command "who" back to the client.
We can test our script like below:
run in 1 terminal the script on example port 1234
run in a other terminal the below command: (test: openssl s client -host localhost -port 1234)
At the moment once I execute the second command on a 2nd terminal, I receive all information on the certificate, but not the output of the command who send back to the client.
This is my code so far: http://pastebin.com/yFKLtyMW
Please help!
PS: I am running python 2.6