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

example client is not connecting to the server. #25

Open
StensonSimon opened this issue Feb 23, 2022 · 1 comment
Open

example client is not connecting to the server. #25

StensonSimon opened this issue Feb 23, 2022 · 1 comment

Comments

@StensonSimon
Copy link

Hi, i am new to this and needs help in connecting to the server. When i try to connect to the example_server from example_client, it gives the below message. Can someone help?
image

@gitbock
Copy link

gitbock commented Jan 24, 2023

same error here :(
AttributeError: '_ssl._SSLSocket' object has no attribute '_sslobj'

Python 3.10.6
sslpsk 1.0.0
tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
tcp_socket.connect((dm_args.zabbix_server, 10051))
psk_sock = sslpsk.wrap_socket(tcp_socket,
                          ssl_version=ssl.PROTOCOL_TLSv1_2,
                          ciphers="PSK-AES128-CBC-SHA",
                          psk=(dm_args.psk, dm_args.psk_id) )

Edit:
After applying this patch manually, it works fine!
See also this thread.

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