Skip to content

ERROR - 'TLSClientHello' object has no attribute 'extensions' #16

@AHewitt

Description

@AHewitt

Hi I recently ran into this error:

ERROR - 'TLSClientHello' object has no attribute 'extensions'
Traceback (most recent call last):
File "/home/admin/certmitm/certmitm.py", line 42, in threaded_connection_handler
connection = certmitm.connection.connection(mitm_connection.downstream_socket, logger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/admin/certmitm/certmitm/connection.py", line 33, in init
self.upstream_sni = certmitm.util.SNIFromHello(self.client_socket.recv(4096, socket.MSG_PEEK))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/admin/certmitm/certmitm/util.py", line 38, in SNIFromHello
for ext in ch.extensions:
^^^^^^^^^^^^^
AttributeError: 'TLSClientHello' object has no attribute 'extensions'

Is this something that can be fixed? Let me know if you need more info to reproduce it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions