From cbc5e502c91c90fe21d79854a3a1c0beddef77f6 Mon Sep 17 00:00:00 2001 From: Justin Vanderhooft Date: Mon, 30 May 2022 14:53:15 -0400 Subject: [PATCH] chore: disable cert check for expired wifiaquatimer.com cert --- raincloudy/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raincloudy/core.py b/raincloudy/core.py index 0c067fe..a655dba 100644 --- a/raincloudy/core.py +++ b/raincloudy/core.py @@ -97,7 +97,7 @@ def _authenticate(self): os.path.join(os.getcwd(), os.path.dirname(__file__)) ) - cert_file = Path(__location__ + "/wifiaquatimer_com_chain.cer") + # cert_file = Path(__location__ + "/wifiaquatimer_com_chain.cer") # to obtain csrftoken, remove Referer from headers headers = HEADERS.copy() @@ -106,7 +106,7 @@ def _authenticate(self): # initial GET request self.client = requests.Session() self.client.proxies = self._proxies - self.client.verify = cert_file.resolve() + # self.client.verify = cert_file.resolve() self.client.stream = True self.client.get(LOGIN_ENDPOINT, headers=headers)