Skip to content

AttributeError: module 'lib' has no attribute 'Cryptography_HAS_TLSEXT_HOSTNAME' #973

@mmicu

Description

@mmicu

I've used the python:3.7.6-slim-stretch docker image for almost one year. Just today I got this strange issue (with pyOpenSSL==17.5.0):

>>> from OpenSSL import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "/usr/local/lib/python3.7/site-packages/OpenSSL/SSL.py", line 673, in <module>
_lib.Cryptography_HAS_TLSEXT_HOSTNAME, "SNI not available"
AttributeError: module 'lib' has no attribute 'Cryptography_HAS_TLSEXT_HOSTNAME'

The only versions that work correctly are pyOpenSSL==19.1.0 and pyOpenSSL==20.0.0.

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