-
Notifications
You must be signed in to change notification settings - Fork 32
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
Support for Python 3.7.0? #11
Comments
I haven't tried this library with Python 3.7. Can you share the code that is failing for you? |
Test failed on python 3.7.2 on Debian Buster.
|
I think that's a different problem, if I remember correctly the attribute _sslobj was renamed to sslobj, so at least that is easy to fix. But after fixing that I stumbled across the problem I described above. Unfortunately, I didn't manage to write a short example so far, but if I have a free minute I will give it a try. |
These tests are passing on travis for Python 3.7, thanks to @AndreySV's fixes. @Danaozhong Can you try the current I'll try to cut a release this weekend. EDIT: 3.7 fails on Windows. Is that your OS? |
BTW friend of mine told me about some problems on Windows (but with python 2.7.16) with sslpsk. Probably because of different openssl versions used for python and sslpsk. He has got it working only with old python 2.7.13. |
@AndreySV
|
Hi Andrey, I am facing similar issue that "AttributeError: '_ssl._SSLSocket' object has no attribute '_sslobj' " in linux ubuntu python 3.6.9 version. Can you please help me out to fix this issue ? |
Same issue on Python 3.8.5 |
Hello, I had also the same issue with python 3.8 on Linux Ubuntu 18.04 TLS. Do you have any hints please? Many thanks in advance, BR \Yann |
See this: #14 (comment)
Helped me to get sslpsk working on Python 3.9.2. |
This seem to be solved in master. Can we get a new release in pip? |
Hi: I am having the same problem even after adding "import sys" to the script. Running python 3.8.5 (apt tells me that my version of Python is the latest, rather than 3.9.2 as above) on Ubuntu 20.04.4, also with sslpsl 1.0.0. The error [return sock._sslobj._sslobj / AttributeError: '_ssl._SSLSocket' object has no attribute '_sslobj' ] seems to be at the same point in the code: def _sslobj(sock): Many Thanks - Elliot |
Hi @elliot-eichen |
Nope. Went in another direction.
…On Tue, Apr 25, 2023, 5:32 AM ratelwork ***@***.***> wrote:
Hi @elliot-eichen <https://github.com/elliot-eichen>
Do you somehow solve this problem?
—
Reply to this email directly, view it on GitHub
<#11 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOS4QFXMYWBSYPTV3JG5A73XC6K2BANCNFSM4GPOBITA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
You can use this in your code that uses sslpsk:
You can add it to the beginning of your own code, you don't need to touch the sslpsk package itself. Just be sure that this patch is executed before you actually use the TLS PSK connections. If it still fails, please show the actual traceback you get. |
Or, install sslpsk from the master branch of the sslpsk repository, now I understood the earlier comment about publishing to PyPI. This is the code that you get with pip:
which is incorrect and doesn't work at least with Python 3.9. Master branch has this:
|
Many thanks!
…On Wed, Apr 26, 2023, 10:32 AM Markku Leiniö ***@***.***> wrote:
You can use this in your code that uses sslpsk:
# Monkey patch for SSLPSK
import sslpsk
def patch_sslobj(sock):
return sock._sslobj
sslpsk.sslpsk._sslobj = patch_sslobj
You can add it to the beginning of your own code, you don't need to touch
the sslpsk package itself. Just be sure that this patch is executed before
you actually use the TLS PSK connections.
—
Reply to this email directly, view it on GitHub
<#11 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOS4QFQDW4OESM6QG6B3G23XDEWZVANCNFSM4GPOBITA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I face an issue when using sslpsk with Python 3.7.0. The TLS connection gets refused.
I run a server application, which upon receiving a Client Hello, closes the TCP connection with a ACK&RES.
Did you run into a similar problem?
The text was updated successfully, but these errors were encountered: