1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 20:17:45 +01:00

[fix] SSL : SNI support

This commit is contained in:
Alexandre Flament 2015-04-26 12:04:29 +02:00
parent 7cc5146c14
commit 201928d2b0
6 changed files with 15 additions and 11 deletions

View File

@ -5,3 +5,8 @@ lxml
pyyaml pyyaml
pygments pygments
python-dateutil python-dateutil
ndg-httpsclient
pyopenssl
pyasn1
pyasn1-modules
certifi

View File

@ -29,10 +29,6 @@ def request(query, params):
params['url'] = search_url.format(search_term=quote(query), params['url'] = search_url.format(search_term=quote(query),
pageno=params['pageno']-1) pageno=params['pageno']-1)
# FIX: SSLError: hostname 'btdigg.org'
# doesn't match either of 'ssl2000.cloudflare.com', 'cloudflare.com', '*.cloudflare.com'
params['verify'] = False
return params return params

View File

@ -34,10 +34,6 @@ def request(query, params):
params['url'] = search_url.format(search_term=quote(query), params['url'] = search_url.format(search_term=quote(query),
pageno=params['pageno']) pageno=params['pageno'])
# FIX: SSLError: hostname 'kickass.so'
# doesn't match either of '*.kickass.to', 'kickass.to'
params['verify'] = False
return params return params

View File

@ -41,9 +41,6 @@ def request(query, params):
# using searx User-Agent # using searx User-Agent
params['headers']['User-Agent'] = searx_useragent() params['headers']['User-Agent'] = searx_useragent()
# FIX: SSLError: SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
params['verify'] = False
return params return params

View File

@ -47,6 +47,11 @@ setup(
'pygments', 'pygments',
'setuptools', 'setuptools',
'python-dateutil', 'python-dateutil',
'pyopenssl',
'ndg-httpsclient',
'pyasn1',
'pyasn1-modules',
'certifi'
], ],
extras_require={ extras_require={
'test': [ 'test': [

View File

@ -32,6 +32,11 @@ speaklater = 1.3
unittest2 = 0.5.1 unittest2 = 0.5.1
waitress = 0.8.8 waitress = 0.8.8
zc.recipe.testrunner = 2.0.0 zc.recipe.testrunner = 2.0.0
pyopenssl = 0.15.1
ndg-httpsclient = 0.3.3
pyasn1 = 0.1.7
pyasn1-modules = 0.0.5
certifi = 14.05.14
# Required by: # Required by:
# WebTest==2.0.11 # WebTest==2.0.11