We have to bring our own certficates on Homebrew Python
The certifi package brings the latest certificates on build
This will cause the create_default_context to load it automatically
We also use this on Windows so users are always up-to-date
logging.warning(T("SABnzbd was started with encoding %s, this should be UTF-8. Expect problems with Unicoded file and directory names in downloads.")%preferredencoding)
logging.warning(T("SABnzbd was started with encoding %s, this should be UTF-8. Expect problems with Unicoded file and directory names in downloads.")%preferredencoding)
# Load extra certificates
ifhasattr(sys,"frozen"):
# The certifi package brings the latest certificates on build
# This will cause the create_default_context to load it automatically
importcertifi
os.environ["SSL_CERT_FILE"]=certifi.where()
logging.info('Loaded additional certificates from %s',os.environ["SSL_CERT_FILE"])