coiled / feedback

A place to provide Coiled feedback
14 stars 3 forks source link

SSL certificate verification fails. #87

Closed bytesemantics closed 1 year ago

bytesemantics commented 4 years ago
  1. Freshly prepated virtualenv
  2. pip install notebook ipywidgets coiled
  3. python -m install --upgrade pip
  4. coiled login --token

(venv) (base) MacBook-Pro-4:coiled $ python Python 3.8.3 (default, Jul 2 2020, 11:26:31) [Clang 10.0.0 ] :: Anaconda, Inc. on darwin Type "help", "copyright", "credits" or "license" for more information.

Error: (in step 4) Traceback (most recent call last): File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 946, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa File "./anaconda3/lib/python3.8/asyncio/base_events.py", line 1050, in create_connection transport, protocol = await self._create_connection_transport( File "./anaconda3/lib/python3.8/asyncio/base_events.py", line 1080, in _create_connection_transport await waiter File "./anaconda3/lib/python3.8/asyncio/sslproto.py", line 529, in data_received ssldata, appdata = self._sslpipe.feed_ssldata(data) File "./anaconda3/lib/python3.8/asyncio/sslproto.py", line 189, in feed_ssldata self._sslobj.do_handshake() File "./anaconda3/lib/python3.8/ssl.py", line 944, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '3.131.1.205'. (_ssl.c:1108)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "./Projects/LEARNING/coiled/venv/bin/coiled", line 8, in sys.exit(cli()) File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/click/core.py", line 829, in call return self.main(args, kwargs) File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, ctx.params) File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(args, **kwargs) File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/coiled/cli/login.py", line 15, in login asyncio.get_event_loop().run_until_complete( File "./anaconda3/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/coiled/utils.py", line 123, in handle_credentials response = await session.request("GET", server + "/api/v1/users/me/") File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/aiohttp/client.py", line 490, in _request conn = await self._connector.connect( File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 528, in connect proto = await self._create_connection(req, traces, timeout) File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 868, in _createconnection , proto = await self._create_direct_connection( File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 1023, in _create_direct_connection raise last_exc File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 999, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "./Projects/LEARNING/coiled/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 948, in _wrap_create_connection raise ClientConnectorCertificateError( aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host cloud.coiled.io:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '3.131.1.205'. (_ssl.c:1108)")]

marin123 commented 3 years ago

Hi @bytesemantics, I'm having the same issue https://github.com/coiled/feedback/issues/85 @necaris was looking into it in the past. The problem still persists for me.

shughes-uk commented 1 year ago

No longer an issue