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

tds protocol issues with python script: AttributeError: 'module' object has no attribute 'MemoryBIO' #510

Open
joakimlemb opened this issue Apr 19, 2024 · 2 comments
Assignees
Labels
bug need more info Not enough information to reproduce or analyse the problem

Comments

@joakimlemb
Copy link

joakimlemb commented Apr 19, 2024

Describe the bug

When using '--protocol tds' for checking certs against MSSQL the python script included produces error:
AttributeError: 'module' object has no attribute 'MemoryBIO'

This also happens if you specify the python3 binary with "--python-bin PATH"

Currently I have created a workaround by replacing the entire python script under get_tds_certificate() with a openssl command:

exec_with_timeout "${OPENSSL} s_client -connect ${HOST}:${PORT} 2>/dev/null </dev/null |  sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ${FILE}"

This seems to work fine with openssl 3.0.13, but I'm not fluent enough in python to tell if script does more than just fetch the cert...

@joakimlemb joakimlemb added the bug label Apr 19, 2024
@matteocorti
Copy link
Owner

I cannot reproduce the problem.

  • Which system are you using?
  • Can you please post the debugging output?

@matteocorti matteocorti self-assigned this Apr 22, 2024
@matteocorti matteocorti added the need more info Not enough information to reproduce or analyse the problem label Apr 22, 2024
@joakimlemb
Copy link
Author

joakimlemb commented May 14, 2024

I cannot reproduce the problem.

* Which system are you using?

* Can you please post the debugging output?

This is on a Debian 8 install with ELTS enabled: https://wiki.debian.org/LTS/Extended

I will fetch the debug output next time I'm on that system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug need more info Not enough information to reproduce or analyse the problem
Projects
None yet
Development

No branches or pull requests

2 participants