Skip to content
Snippets Groups Projects
Commit 3c380382 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[cacert] Use certificates provided by certifi

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