@@ -15,12 +15,10 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
1515(C) 2013- by Adam Tauber, <asciimoo@gmail.com>
1616'''
1717
18−import certifi
1918import logging
2019from os import environ
2120from os.path import realpath, dirname, join, abspath, isfile
2221from io import open
23−from ssl import OPENSSL_VERSION_INFO, OPENSSL_VERSION
2422from yaml import safe_load
2523
2624
@@ -81,13 +79,6 @@ else:
8179
8280logger = logging.getLogger('searx')
8381logger.debug('read configuration from %s', settings_path)
84−# Workaround for openssl versions <1.0.2
85−# https://github.com/certifi/python-certifi/issues/26
86−if OPENSSL_VERSION_INFO[0:3] < (1, 0, 2):
87− if hasattr(certifi, 'old_where'):
88− environ['REQUESTS_CA_BUNDLE'] = certifi.old_where()
89− logger.warning('You are using an old openssl version({0}), please upgrade above 1.0.2!'.format(OPENSSL_VERSION))
90−
9182logger.info('Initialisation done')
9283
9384if 'SEARX_SECRET' in environ: