You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any idea what might be causing this SSL error when a client connects? The server requires encryption, and the error occurs whether the client has encryption enabled or not. This error occurs just after the TDS login message is received:
[!] Login data
...
[+] server side: TLS handshake in progess - caching TDSLogin
[+] server side: TLS handshake receive
Unhandled Error
Traceback (most recent call last):
File "./mitmsqlproxy/lib/python3.12/site-packages/twisted/internet/posixbase.py", line 481, in _doReadOrWrite
why = selectable.doRead()
File "./mitmsqlproxy/lib/python3.12/site-packages/twisted/internet/tcp.py", line 250, in doRead
return self._dataReceived(data)
File "./mitmsqlproxy/lib/python3.12/site-packages/twisted/internet/tcp.py", line 255, in _dataReceived
rval = self.protocol.dataReceived(data)
File "./mitmsqlproxy/mitmsqlproxy.py", line 482, in dataReceived
self.tls.do_handshake()
File "./mitmsqlproxy/lib/python3.12/site-packages/OpenSSL/SSL.py", line 2202, in do_handshake
self._raise_ssl_error(self._ssl, result)
File "./mitmsqlproxy/lib/python3.12/site-packages/OpenSSL/SSL.py", line 1843, in _raise_ssl_error
_openssl_assert(
File "./mitmsqlproxy/lib/python3.12/site-packages/OpenSSL/_util.py", line 71, in openssl_assert
exception_from_error_queue(error)
File "./mitmsqlproxy/lib/python3.12/site-packages/OpenSSL/_util.py", line 57, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.SSL.Error: [('asn1 encoding routines', '', 'wrong tag'), ('asn1 encoding routines', '', 'nested asn1 error'), ('asn1 encoding routines', '', 'nested asn1 error'), ('SSL routines', '', 'ASN1 lib')]
Seems like it might be related to the generated self-signed cert?
It was a SQL Server instance hosted by Azure, and I believe strict encryption was enabled. Unfortunately I can't actually do any more debugging on it at this point because it was a database controlled by a customer of ours, and we eventually solved the issue we were attempting to debug using mitmsqlproxy. Thanks for checking anyway 👍
Any idea what might be causing this SSL error when a client connects? The server requires encryption, and the error occurs whether the client has encryption enabled or not. This error occurs just after the TDS login message is received:
Seems like it might be related to the generated self-signed cert?
The text was updated successfully, but these errors were encountered: