Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' #394

Open
whale-song opened this issue Sep 19, 2022 · 1 comment

Comments

@whale-song
Copy link

System: Ubuntu 18.04
Issue: When trying with "./server.py", an exception occured with:
Traceback (most recent call last):
File "./server.py", line 7, in
from twisted.internet import reactor
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/reactor.py", line 38, in
from twisted.internet import default
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/default.py", line 55, in
install = _getInstallFunction(platform)
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/default.py", line 43, in _getInstallFunction
from twisted.internet.epollreactor import install
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/epollreactor.py", line 19, in
from twisted.internet import posixbase
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/posixbase.py", line 19, in
from twisted.internet import error, tcp, udp
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/tcp.py", line 38, in
from twisted.internet._newtls import (
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/_newtls.py", line 18, in
from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/protocols/tls.py", line 40, in
from OpenSSL.SSL import (
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/OpenSSL/init.py", line 8, in
from OpenSSL import crypto, SSL
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/OpenSSL/crypto.py", line 1550, in
class X509StoreFlags(object):
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/OpenSSL/crypto.py", line 1570, in X509StoreFlags
CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'

@whale-song
Copy link
Author

Edit: my problem... Solved with updating pyOpenSSL to 22.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant