From 068443c4b9bc66ce6aab893eada20c2e99712588 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Fri, 13 Feb 2015 13:13:10 +0000 Subject: [PATCH] Fix SSL authentication on Synology stations. Disables certification verification for SYNO requests; not an ideal fix as a mitm process can be established as a result. However, permits using SSL until a full fix is available. --- CHANGES.md | 1 + sickbeard/clients/download_station.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 677015b5..cc9d5676 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -48,6 +48,7 @@ * Fix issue where PMS text wasn't initialised on the config/notifications page and added info about Plex clients * Add ability to test Plex Server(s) on config/notifications page * Add percentage of episodes downloaded to footer and remove double spaces in text +* Fix SSL authentication on Synology stations [develop changelog] * Change uT params from unicode to str.format as magnet URLs worked but sending files in POST bodies failed diff --git a/sickbeard/clients/download_station.py b/sickbeard/clients/download_station.py index 26a36df3..532d5628 100644 --- a/sickbeard/clients/download_station.py +++ b/sickbeard/clients/download_station.py @@ -36,7 +36,7 @@ class DownloadStationAPI(GenericClient): auth_url = self.host + 'webapi/auth.cgi?api=SYNO.API.Auth&version=2&method=login&account=' + self.username + '&passwd=' + self.password + '&session=DownloadStation&format=sid' try: - self.response = self.session.get(auth_url) + self.response = self.session.get(auth_url, verify=False) self.auth = self.response.json()['data']['sid'] except: return None