Use corporate proxy certificate
In case you are behind corporate proxy - the following commands might help.
In case you are behind a corporate proxy, the following commands might help.
These environment variables tell Python-based tools (pip, requests, httplib2) and curl to use the CA bundle provided by the certifi package. This is the quickest way to make most CLI tools trust your corporate proxy certificate without modifying system-level CA stores.
1
2
3
4
5
export CERT_PATH=$(python3 -m certifi)
export SSL_CERT_FILE=${CERT_PATH}
export CURL_CA_BUNDLE=${CERT_PATH}
export REQUESTS_CA_BUNDLE=${CERT_PATH}
export HTTPLIB2_CA_CERTS=${CERT_PATH}
This post is licensed under CC BY 4.0 by the author.