forked from LBRYCommunity/lbry-sdk
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 binascii
|
||||||
|
import certifi
|
||||||
import logging.handlers
|
import logging.handlers
|
||||||
import mimetypes
|
import mimetypes
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import base58
|
import base58
|
||||||
import requests
|
import requests
|
||||||
import urllib
|
import urllib
|
||||||
|
@ -231,6 +233,10 @@ class Daemon(AuthJSONRPCServer):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def setup(self):
|
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)
|
reactor.addSystemEventTrigger('before', 'shutdown', self._shutdown)
|
||||||
configure_loggly_handler()
|
configure_loggly_handler()
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
certifi==2018.4.16
|
||||||
Twisted==16.6.0
|
Twisted==16.6.0
|
||||||
cryptography==2.2.2
|
cryptography==2.2.2
|
||||||
appdirs==1.4.3
|
appdirs==1.4.3
|
||||||
|
|
Loading…
Add table
Reference in a new issue