diff --git a/modules/wellsfargo/browser.py b/modules/wellsfargo/browser.py index a158e2a0..761ab17f 100644 --- a/modules/wellsfargo/browser.py +++ b/modules/wellsfargo/browser.py @@ -21,6 +21,7 @@ from weboob.capabilities.bank import AccountNotFound from weboob.browser import LoginBrowser, URL, need_login from weboob.exceptions import BrowserIncorrectPassword +import ssl from .pages import LoginPage, LoginProceedPage, LoginRedirectPage, \ SummaryPage, ActivityCashPage, ActivityCardPage, \ @@ -72,6 +73,15 @@ class WellsFargo(LoginBrowser): else: return r + def prepare_request(self, req): + """ + Wells Fargo uses TLS v1.0. See issue #1647 for details. + """ + preq = super(WellsFargo, self).prepare_request(req) + conn = self.session.adapters['https://'].get_connection(preq.url) + conn.ssl_version = ssl.PROTOCOL_TLSv1 + return preq + def get_account(self, id_): self.to_activity() if id_ not in self.page.accounts_ids():