tcosigner pool: user certifi instead of system ssl cert store - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 1a9e6a434f9fb5277c0813e2438805e1f23397be DIR parent faafb70d4cbaff80d959a450c5f215d01b701c0d HTML Author: SomberNight <somber.night@protonmail.com> Date: Mon, 29 Jun 2020 02:15:01 +0200 cosigner pool: user certifi instead of system ssl cert store related: https://github.com/spesmilo/electrum/issues/5678#issuecomment-650837465 Diffstat: M electrum/plugins/cosigner_pool/qt.… | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/plugins/cosigner_pool/qt.py b/electrum/plugins/cosigner_pool/qt.py t@@ -26,9 +26,11 @@ import time from xmlrpc.client import ServerProxy from typing import TYPE_CHECKING, Union, List, Tuple +import ssl from PyQt5.QtCore import QObject, pyqtSignal from PyQt5.QtWidgets import QPushButton +import certifi from electrum import util, keystore, ecc, crypto from electrum import transaction t@@ -47,7 +49,9 @@ if TYPE_CHECKING: from electrum.gui.qt.main_window import ElectrumWindow -server = ServerProxy('https://cosigner.electrum.org/', allow_none=True) +ca_path = certifi.where() +ssl_context = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH, cafile=ca_path) +server = ServerProxy('https://cosigner.electrum.org/', allow_none=True, context=ssl_context) class Listener(util.DaemonThread):