mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add verify_mode to ssl context
CURA-7176
This commit is contained in:
parent
d501f7730a
commit
bffe79d96c
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue