97 lines
2.9 KiB
Diff
97 lines
2.9 KiB
Diff
diff --git a/electrum_ltc/interface.py b/electrum_ltc/interface.py
|
|
index b5eac439c..14bbd7ab9 100644
|
|
--- a/electrum_ltc/interface.py
|
|
+++ b/electrum_ltc/interface.py
|
|
@@ -40,7 +40,6 @@ from aiorpcx import RPCSession, Notification, NetAddress
|
|
from aiorpcx.curio import timeout_after, TaskTimeout
|
|
from aiorpcx.jsonrpc import JSONRPC, CodeMessageError
|
|
from aiorpcx.rawsocket import RSClient
|
|
-import certifi
|
|
|
|
from .util import ignore_exceptions, log_exceptions, bfh, SilentTaskGroup
|
|
from . import util
|
|
@@ -57,7 +56,7 @@ if TYPE_CHECKING:
|
|
from .network import Network
|
|
|
|
|
|
-ca_path = certifi.where()
|
|
+ca_path = '/etc/ssl/certs/ca-certificates.crt'
|
|
|
|
BUCKET_NAME_OF_ONION_SERVERS = 'onion'
|
|
|
|
diff --git a/electrum_ltc/paymentrequest.py b/electrum_ltc/paymentrequest.py
|
|
index 149065bf3..9580c8d48 100644
|
|
--- a/electrum_ltc/paymentrequest.py
|
|
+++ b/electrum_ltc/paymentrequest.py
|
|
@@ -29,7 +29,6 @@ import traceback
|
|
import json
|
|
from typing import Optional
|
|
|
|
-import certifi
|
|
import urllib.parse
|
|
import aiohttp
|
|
|
|
@@ -54,7 +53,7 @@ _logger = get_logger(__name__)
|
|
REQUEST_HEADERS = {'Accept': 'application/litecoin-paymentrequest', 'User-Agent': 'Electrum'}
|
|
ACK_HEADERS = {'Content-Type':'application/litecoin-payment','Accept':'application/litecoin-paymentack','User-Agent':'Electrum'}
|
|
|
|
-ca_path = certifi.where()
|
|
+ca_path = '/etc/ssl/certs/ca-certificates.crt'
|
|
ca_list = None
|
|
ca_keyID = None
|
|
|
|
diff --git a/electrum_ltc/util.py b/electrum_ltc/util.py
|
|
index bc69800dc..9c32a195a 100644
|
|
--- a/electrum_ltc/util.py
|
|
+++ b/electrum_ltc/util.py
|
|
@@ -44,7 +44,6 @@ import ssl
|
|
import aiohttp
|
|
from aiohttp_socks import SocksConnector, SocksVer
|
|
from aiorpcx import TaskGroup
|
|
-import certifi
|
|
|
|
from .i18n import _
|
|
from .logging import get_logger, Logger
|
|
@@ -62,7 +61,7 @@ def inv_dict(d):
|
|
return {v: k for k, v in d.items()}
|
|
|
|
|
|
-ca_path = certifi.where()
|
|
+ca_path = '/etc/ssl/certs/ca-certificates.crt'
|
|
|
|
|
|
base_units = {'LTC':8, 'mLTC':5, 'uLTC':2, 'sat':0}
|
|
diff --git a/electrum_ltc/x509.py b/electrum_ltc/x509.py
|
|
index c38edc77a..e745e4878 100644
|
|
--- a/electrum_ltc/x509.py
|
|
+++ b/electrum_ltc/x509.py
|
|
@@ -343,7 +343,6 @@ def load_certificates(ca_path):
|
|
|
|
|
|
if __name__ == "__main__":
|
|
- import certifi
|
|
|
|
- ca_path = certifi.where()
|
|
+ ca_path = '/etc/ssl/certs/ca-certificates.crt'
|
|
ca_list, ca_keyID = load_certificates(ca_path)
|
|
diff --git a/run_electrum b/run_electrum
|
|
index 978e5fb2f..e8fc3888c 100755
|
|
--- a/run_electrum
|
|
+++ b/run_electrum
|
|
@@ -58,7 +58,6 @@ def check_imports():
|
|
import dns
|
|
import pyaes
|
|
import ecdsa
|
|
- import certifi
|
|
import qrcode
|
|
import google.protobuf
|
|
import jsonrpclib
|
|
@@ -72,7 +71,7 @@ def check_imports():
|
|
from google.protobuf import descriptor_pb2
|
|
from jsonrpclib import SimpleJSONRPCServer
|
|
# make sure that certificates are here
|
|
- assert os.path.exists(certifi.where())
|
|
+ assert os.path.exists('/etc/ssl/certs/ca-certificates.crt')
|
|
|
|
|
|
if not is_android:
|