added certifi package for Twisted SSL verification on Windows

This commit is contained in:
Akinwale Ariwodola 2018-05-24 11:32:58 +01:00 committed by Lex Berezhny
parent 02bcc98a6a
commit 513f5d0568
2 changed files with 7 additions and 0 deletions

View file

@ -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()

View file

@ -1,3 +1,4 @@
certifi==2018.4.16
Twisted==16.6.0
cryptography==2.2.2
appdirs==1.4.3