Hello,
I implemented the secure_pmu.py sever application. When testing it with the provided client program Part5_PDC.pyc in MininetVM, I get a ConnectionResetError on the output of both server and client. Here's the traceback on the client side:
$ python3 secure_pmu.py certificate.crt CAMIPRO1_key.pem
Traceback (most recent call last):
File "secure_pmu.py", line 27, in <module>
data = conn.read(4096).decode()
File "/usr/lib/python3.6/ssl.py", line 874, in read
return self._sslobj.read(len, buffer)
File "/usr/lib/python3.6/ssl.py", line 633, in read
v = self._sslobj.read(len)
ConnectionResetError: [Errno 104] Connection reset by peer
Any idea of this error?
Another question is that are the key file and certificate file correspond to each other. I got messed because I type the command to generate the key file several times and each time I erased the last key file. Thanks a lot.