creditcooperatif
Dear Woob,
Since a few months (can't tell when exactly) I can't connect to creditcooperatif anymore. From a fresh install and configured backend I obtain this :
bank> ls
Account Balance Coming
------------------------------------------+----------+----------
2021-06-17 22:09:51,734:DEBUG:bcall:3.0:bcall.py:92:backend_process <Backend 'creditcooperatif'>: Calling function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f40d8f2ff10>>
2021-06-17 22:09:51,734:DEBUG:bcall:3.0:bcall.py:101:backend_process <Backend 'creditcooperatif'>: Called function <bound method Application._do_complete of <woob.applications.bank.bank.Appbank object at 0x7f40d8f2ff10>> returned: <generator object Application._do_complete_iter at 0x7f40d420c430>
2021-06-17 22:09:51,739:DEBUG:urllib3.connectionpool:3.0:connectionpool.py:955:_new_conn Starting new HTTPS connection (4): www.as-ex-ano-groupe.caisse-epargne.fr:443
2021-06-17 22:09:51,923:DEBUG:urllib3.util.retry:3.0:retry.py:438:increment Incremented Retry for (url='/api/oauth/token'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
2021-06-17 22:09:51,923:WARNING:urllib3.connectionpool:3.0:connectionpool.py:744:urlopen Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1129)'))': /api/oauth/token
2021-06-17 22:09:51,924:DEBUG:urllib3.connectionpool:3.0:connectionpool.py:955:_new_conn Starting new HTTPS connection (5): www.as-ex-ano-groupe.caisse-epargne.fr:443
2021-06-17 22:09:52,092:DEBUG:urllib3.util.retry:3.0:retry.py:438:increment Incremented Retry for (url='/api/oauth/token'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
2021-06-17 22:09:52,092:WARNING:urllib3.connectionpool:3.0:connectionpool.py:744:urlopen Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1129)'))': /api/oauth/token
2021-06-17 22:09:52,093:DEBUG:urllib3.connectionpool:3.0:connectionpool.py:955:_new_conn Starting new HTTPS connection (6): www.as-ex-ano-groupe.caisse-epargne.fr:443
Bug(creditcooperatif): HTTPSConnectionPool(host='www.as-ex-ano-groupe.caisse-epargne.fr', port=443): Max retries exceeded with url: /api/oauth/token (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1129)')))
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/home/delsart/.local/share/woob/modules/3.0/caissedepargne/browser.py", line 130, in make_request
return pool._old__make_request(conn, method, url, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 994, in _validate_conn
conn.connect()
File "/usr/lib/python3.9/site-packages/urllib3/connection.py", line 352, in connect
self.sock = ssl_wrap_socket(
File "/usr/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 370, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib64/python3.9/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib64/python3.9/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/lib64/python3.9/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1129)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 747, in urlopen
return self.urlopen(
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 747, in urlopen
return self.urlopen(
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "/usr/lib/python3.9/site-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.as-ex-ano-groupe.caisse-epargne.fr', port=443): Max retries exceeded with url: /api/oauth/token (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1129)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/delsart/.local/lib/python3.9/site-packages/woob/core/bcall.py", line 106, in backend_process
for subresult in result:
File "/home/delsart/.local/lib/python3.9/site-packages/woob/tools/application/base.py", line 328, in _do_complete_iter
for i, sub in enumerate(res):
File "/home/delsart/.local/share/woob/modules/3.0/caissedepargne/module.py", line 82, in iter_accounts
for account in self.browser.get_accounts_list():
File "/home/delsart/.local/lib/python3.9/site-packages/woob/browser/switch.py", line 100, in wrapper
return val(*args, **kwargs)
File "/home/delsart/.local/lib/python3.9/site-packages/woob/browser/browsers.py", line 981, in inner
browser.do_login()
File "/home/delsart/.local/share/woob/modules/3.0/caissedepargne/browser.py", line 226, in do_login
self.do_api_pre_login()
File "/home/delsart/.local/share/woob/modules/3.0/caissedepargne/browser.py", line 258, in do_api_pre_login
self.token_page.go(data=data)
File "/home/delsart/.local/lib/python3.9/site-packages/woob/browser/url.py", line 98, in go
r = self.browser.location(self.build(**kwargs), params=params, data=data, json=json, method=method, headers=headers or {})
File "/home/delsart/.local/lib/python3.9/site-packages/woob/browser/browsers.py", line 911, in location
response = self.open(*args, **kwargs)
File "/home/delsart/.local/lib/python3.9/site-packages/woob/browser/browsers.py", line 898, in open
return super(PagesBrowser, self).open(callback=internal_callback, *args, **kwargs)
File "/home/delsart/.local/lib/python3.9/site-packages/woob/browser/browsers.py", line 790, in open
return super(DomainBrowser, self).open(req, *args, **kwargs)
File "/home/delsart/.local/lib/python3.9/site-packages/woob/browser/browsers.py", line 531, in open
response = self.session.send(preq,
File "/home/delsart/.local/lib/python3.9/site-packages/woob/browser/sessions.py", line 165, in send
return func(*args, **kwargs)
File "/home/delsart/.local/lib/python3.9/site-packages/woob/browser/sessions.py", line 157, in func
resp = sup(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.9/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.as-ex-ano-groupe.caisse-epargne.fr', port=443): Max retries exceeded with url: /api/oauth/token (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1129)')))
if I start with woob bank --nss
the main error becomes :
2021-06-17 22:16:55,349:WARNING:urllib3.connectionpool:3.0:connectionpool.py:744:urlopen Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(0, '(SSL_ERROR_WEAK_SERVER_EPHEMERAL_DH_KEY) SSL received a weak ephemeral Diffie-Hellman key in Server Key Exchange handshake message.'))': /api/oauth/token
Bug(creditcooperatif): HTTPSConnectionPool(host='www.as-ex-ano-groupe.caisse-epargne.fr', port=443): Max retries exceeded with url: /api/oauth/token (Caused by SSLError(SSLError(0, '(SSL_ERROR_WEAK_SERVER_EPHEMERAL_DH_KEY) SSL received a weak ephemeral Diffie-Hellman key in Server Key Exchange handshake message.')))
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Use "logging debug" option to print backtraces.
Is there something to do to fix this ?
Thanks and cheers!