Skip to content

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

@joakimlemb

Description

@joakimlemb

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...

Metadata

Metadata

Assignees

Labels

bugneed more infoNot enough information to reproduce or analyse the problem

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions