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

aiohttp spits SSL errors when dealing with invalide certificates #45

Closed
Unitiser opened this issue Feb 1, 2019 · 3 comments
Closed

Comments

@Unitiser
Copy link

Unitiser commented Feb 1, 2019

I was running tachyon on a staging site that uses a self signed certificate when I got a bunch of SSL errors.

Here's a snippet of the error messages :

SSL error in data received
protocol: <asyncio.sslproto.SSLProtocol object at 0x7f4bd11941d0>
transport: <_SelectorSocketTransport fd=51 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 207, in feed_ssldata
    self._sslobj.unwrap()
  File "/usr/lib/python3.7/ssl.py", line 767, in unwrap
    return self._sslobj.shutdown()
ssl.SSLError: [SSL: KRB5_S_INIT] application data after close notify (_ssl.c:2605)
SSL error in data received
protocol: <asyncio.sslproto.SSLProtocol object at 0x7f4bd10b9470>
transport: <_SelectorSocketTransport fd=49 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 207, in feed_ssldata
    self._sslobj.unwrap()
  File "/usr/lib/python3.7/ssl.py", line 767, in unwrap
    return self._sslobj.shutdown()
ssl.SSLError: [SSL: KRB5_S_INIT] application data after close notify (_ssl.c:2605)
SSL error in data received
protocol: <asyncio.sslproto.SSLProtocol object at 0x7f4bd10c5080>
transport: <_SelectorSocketTransport fd=45 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 207, in feed_ssldata
    self._sslobj.unwrap()
  File "/usr/lib/python3.7/ssl.py", line 767, in unwrap
    return self._sslobj.shutdown()
ssl.SSLError: [SSL: KRB5_S_INIT] application data after close notify (_ssl.c:2605)

I believe this issue is linked to aio-libs/aiohttp#3477.

Updating aiohttp to 3.5.4 seams to fix the issue.

@lphuberdeau
Copy link
Member

This is in fact a long standing issue I've seen once in a while. Can you confirm the aiohttp release fixes the issue?

@Unitiser
Copy link
Author

Unitiser commented Feb 1, 2019

After running tachyon on the same site with the updated version of aiohttp in my virtualenv, I did not get any errors. I did not make extensive tests tho.

@lphuberdeau
Copy link
Member

Versions updated. Released as 0.6.2.

Disregard the failed build, that's travis attempting to publish the same version multiple times due to the build matrix.

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