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

ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] ssl/tls alert handshake failure (_ssl.c:1000) #96

Closed
jlczuk opened this issue Apr 26, 2024 · 2 comments

Comments

@jlczuk
Copy link
Member

jlczuk commented Apr 26, 2024

I'm trying to use zti to connect to a z/OS system's tn3270 port. When I do I get this error. I don't know how to resolve this. I was able to connect to a different z/OS system successfully.

Sorry about the lack of formatting in the following stack trace. The issue won't let me format it inside the code block.

Session: NONE> goto somesys.com:2023 Traceback (most recent call last): File "/x/.pyenv/versions/3.12.2/lib/python3.12/site-packages/tnz/tnz.py", line 3698, in __connect await loop.create_connection(protocol, host, port, File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio base_events.py", line 1149, in create_connection transport, protocol = await self._create_connection_transport( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 1182, in _create_connection_transport await waiter File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/sslproto.py", line 578, in _on_handshake_complete raise handshake_exc File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/sslproto.py", line 560, in _do_handshake self._sslobj.do_handshake() File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 917, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] ssl/tls alert handshake failure (_ssl.c:1000) SESLOST = 'SOMESYS'

@najohnsn
Copy link
Member

First thing to do is to check this out: https://ibm.github.io/tnz/security

@jlczuk
Copy link
Member Author

jlczuk commented Apr 29, 2024

That did the trick. Thank you!

@jlczuk jlczuk closed this as completed Apr 29, 2024
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

2 participants