diff options
author | Jaime van Kessel <nallath@gmail.com> | 2020-03-05 18:06:27 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2020-03-05 18:06:27 +0300 |
commit | bffe79d96ca244ec9c812a56a5bfff5dd45c168f (patch) | |
tree | 500ce0e230e382b6215d1b290beef10ec11178bc /plugins/FirmwareUpdateChecker | |
parent | d501f7730a42e45177fa3cdb89a4cdce1f1bd9a4 (diff) |
Add verify_mode to ssl context
CURA-7176
Diffstat (limited to 'plugins/FirmwareUpdateChecker')
-rw-r--r-- | plugins/FirmwareUpdateChecker/FirmwareUpdateCheckerJob.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/FirmwareUpdateChecker/FirmwareUpdateCheckerJob.py b/plugins/FirmwareUpdateChecker/FirmwareUpdateCheckerJob.py index f286662bc4..c8a0b7d797 100644 --- a/plugins/FirmwareUpdateChecker/FirmwareUpdateCheckerJob.py +++ b/plugins/FirmwareUpdateChecker/FirmwareUpdateCheckerJob.py @@ -44,6 +44,7 @@ class FirmwareUpdateCheckerJob(Job): try: # CURA-6698 Create an SSL context and use certifi CA certificates for verification. context = ssl.SSLContext(protocol = ssl.PROTOCOL_TLSv1_2) + context.verify_mode = ssl.CERT_REQUIRED context.load_verify_locations(cafile = certifi.where()) request = urllib.request.Request(url, headers = self._headers) |