Commit 13307fb9 authored by 0hax's avatar 0hax

[creditdunord] use TLSv1_2

parent dd96ded0
Pipeline #1816 failed with stages
in 0 seconds
......@@ -18,6 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import unicode_literals
import ssl
from weboob.browser import LoginBrowser, URL, need_login
from weboob.exceptions import BrowserIncorrectPassword, BrowserPasswordExpired
......@@ -66,6 +67,14 @@ class CreditDuNordBrowser(LoginBrowser):
else:
self.do_login()
def prepare_request(self, req):
preq = super(CreditDuNordBrowser, self).prepare_request(req)
conn = self.session.adapters['https://'].get_connection(preq.url)
conn.ssl_version = ssl.PROTOCOL_TLSv1_2
return preq
def do_login(self):
self.login.go().login(self.username, self.password)
if self.accounts.is_here():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment