Skip to content

TLSServerAutomaton cannot finish ssl handshake #2346

@acp6

Description

@acp6

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

Screenshot 2019-11-27 10 25 06

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.

Related resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions