Skip to content

AttributeError: module 'ssl' has no attribute 'wrap_socket'  #1153

@kidexx

Description

@kidexx

I have the following issue:
In the log smarthack-psk.log I get

module 'ssl' has no attribute 'wrap_socket'
new client on port 443 from 10.42.42.33:60310
module 'ssl' has no attribute 'wrap_socket'
new client on port 443 from 10.42.42.33:60312
module 'ssl' has no attribute 'wrap_socket'
new client on port 443 from 10.42.42.33:60324
module 'ssl' has no attribute 'wrap_socket'

This seems to be related to a change in python:
eventlet/eventlet#795

It is in the file psk-frontend.

The old code:

ssl_sock = sslpsk.wrap_socket(s1,
server_side = True,
ssl_version=ssl.PROTOCOL_TLSv1_2,
ciphers='PSK-AES128-CBC-SHA256',
psk=lambda identity: gen_psk(identity, self.hint),
hint=self.hint)

But I don't know how to change it to the new format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions