-
-
Couldn't load subscription status.
- Fork 2.2k
Closed
Labels
Description
Things to consider
Brief description
Using TLSServerAutomaton (in scapy.layers.tls) to run a server, cannot finish ssl handshake with openssl s_client
Environment
- Scapy version: 2.4.3
- Python version: 3.7
- Operating System: MacOS 10.15
How to reproduce
in iPython:
from scapy.all import *
from scapy.layers.tls.automaton_srv import TLSServerAutomaton
t = TLSServerAutomaton(mycert='server-rsa-cert.pem', mykey='server-rsa-key.pem')
t.run()
in terminal:
openssl s_client -connect 127.0.0.1:4433
Actual result
I edited the file automaton_srv.py by chaning the
c = self.buffer_out[-1].msg[0].cipher
to c = self.buffer_out[-1].inner.msg[0].cipher
to resolve the AttributeError: msg, but still cannot connect to a ssl client.
