Skip to content

Commit

Permalink
chore: disable cert check for expired wifiaquatimer.com cert
Browse files Browse the repository at this point in the history
  • Loading branch information
vanstinator committed May 30, 2022
1 parent 2fd84de commit cbc5e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raincloudy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)

Expand Down

0 comments on commit cbc5e50

Please sign in to comment.