-
Notifications
You must be signed in to change notification settings - Fork 18
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
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997) #54
Comments
I suspect this means your server does not support secure connections. If you don't require a specific port try this:
Or try this to turn off ssl:
|
Observered similar problem with Python 3.11 on windows as well. setting SESSION_SSL and ZTI_SECLEVEL to different values did not fix the issue at 3.11 level. Host is z/OS 2.3 with TLS 1.2 enabled. Finally Uninstalled 3.11 and installed 3.9 in windows which established the connection. |
Wondering what we are missing for the setup of 0.3.6 with Python 3.11 and TLS ? |
Yes there seems to be some incompatibilities with this package and Python 3.11. |
I'm surprised ZTI_SECLEVEL=1 did not help. Are you sure it was set as an environment variable before starting zti? In windows command prompt you would do Given that ssl error, the incompatibility is between the python ssl usage and the tn3270 server. I'll try to look up what I did before to determine what "security" the server supports and what "security" python ssl support. |
Installed python 3.11, set ZTI_SECLEVEL=1 and then tried zti. Got below errors while in Python 3.9 this works. |
I think that the message here is that the information provided by the ssl error is insufficient considering the vast number of variables at play here. The best approach may be for tnz to do some additional diagnostics for ssl errors. Though I don't expect that to be easy. In the meantime, it would be good to get some specifics about the version of Python (3.11.4?) and the version of OpenSSL. It's possible that use of the OpenSSL command may be needed to debug. |
I suspect that the |
Hello
When I try to connect to my host, I get the following error:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/tnz/tnz.py", line 3689, in __connect
await loop.create_connection(protocol, host, port,
File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 1092, in create_connection
transport, protocol = await self._create_connection_transport(
File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 1122, in _create_connection_transport
await waiter
File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/sslproto.py", line 534, in data_received
ssldata, appdata = self._sslpipe.feed_ssldata(data)
File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/sslproto.py", line 188, in feed_ssldata
self._sslobj.do_handshake()
File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 975, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)
The text was updated successfully, but these errors were encountered: