added certifi package for Twisted SSL verification on Windows
This commit is contained in:
parent
02bcc98a6a
commit
513f5d0568
2 changed files with 7 additions and 0 deletions
|
@ -1,7 +1,9 @@
|
|||
import binascii
|
||||
import certifi
|
||||
import logging.handlers
|
||||
import mimetypes
|
||||
import os
|
||||
import sys
|
||||
import base58
|
||||
import requests
|
||||
import urllib
|
||||
|
@ -231,6 +233,10 @@ class Daemon(AuthJSONRPCServer):
|
|||
|
||||
@defer.inlineCallbacks
|
||||
def setup(self):
|
||||
# Set SSL_CERT_FILE env variable for Twisted SSL verification on Windows
|
||||
if 'win' in sys.platform:
|
||||
os.environ['SSL_CERT_FILE'] = certifi.where()
|
||||
|
||||
reactor.addSystemEventTrigger('before', 'shutdown', self._shutdown)
|
||||
configure_loggly_handler()
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
certifi==2018.4.16
|
||||
Twisted==16.6.0
|
||||
cryptography==2.2.2
|
||||
appdirs==1.4.3
|
||||
|
|
Loading…
Reference in a new issue