Skip to content

Commit 2d2861e

Browse files
committed
Settings: Use system certificates
1 parent 00ffd42 commit 2d2861e

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

orangecanvas/application/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,9 @@ def __setupUi(self):
511511
line_edit_https_proxy = QLineEdit()
512512
self.bind(line_edit_https_proxy, "text", "network/https-proxy")
513513
form.addRow("HTTPS proxy:", line_edit_https_proxy)
514+
cb_use_certs = QCheckBox()
515+
self.bind(cb_use_certs, "checked", "network/use-certs")
516+
form.addRow("Use system certificates:", cb_use_certs)
514517
tab.setLayout(form)
515518

516519
if self.__macUnified:

orangecanvas/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ def init():
446446
("network/http-proxy", str, '', 'HTTP proxy.'),
447447

448448
("network/https-proxy", str, '', 'HTTPS proxy.'),
449+
450+
("network/use-certs", bool, False, "Use system certificates."),
449451
]
450452

451453

orangecanvas/main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,11 @@ def fix_set_proxy_env():
439439
else:
440440
os.environ.pop(env_scheme, "")
441441

442+
if settings.value("network/use-certs", False, bool):
443+
import truststore
444+
445+
truststore.inject_into_ssl()
446+
442447

443448
def fix_macos_nswindow_tabbing():
444449
warnings.warn(

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"typing_extensions",
4040
"packaging",
4141
"numpy",
42+
"truststore",
4243
)
4344

4445

0 commit comments

Comments
 (0)