Commit 3c380382 authored by André Anjos's avatar André Anjos 💬

[cacert] Use certificates provided by certifi

parent 5ee7becb
Pipeline #25823 passed with stages
in 3 minutes and 46 seconds
......@@ -25,8 +25,7 @@ CONDA_RECIPE_APPEND = pkg_resources.resource_filename(__name__,
SERVER = 'http://www.idiap.ch'
'''This is the default server use use to store data and build artifacts'''
CACERT = pkg_resources.resource_filename(__name__,
os.path.join('data', 'cacert.pem'))
CACERT = __import__('certifi').where()
'''We keep a copy of the CA certificates we trust here
To update this file use: ``curl --remote-name --time-cond cacert.pem https://curl.haxx.se/ca/cacert.pem``
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -58,3 +58,4 @@ def main():
from ..constants import CACERT, set_environment
set_environment('SSL_CERT_FILE', CACERT, os.environ)
set_environment('REQUESTS_CA_BUNDLE', CACERT, os.environ)
......@@ -35,6 +35,7 @@ requirements:
- click-plugins
- conda=4
- conda-build=3
- certifi
- pytz
- python-dateutil
- gitpython
......
......@@ -10,6 +10,7 @@ requires = [
'click',
'click-plugins',
'conda-build',
'certifi',
'requests',
'gitpython',
'python-gitlab',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment