If an application you're using doesn't connect to the Internet (e.g. Python, Git, Docker, Ruby...), even though it requires Internet access, please refer to the publisher's documentation.
In most cases, an option in the application allows you to set a proxy server.
You can find the certificat file on "MACSOFTWARE" and "PCSOFTWARE".
PIP
On macOS and Linux platforms
Download the certificate bundle in CRT format.
Create a new directory and move the bundle to the new location using the following Bash commands:
mkdir ~/ca_certs
mv ~/Downloads/custom-ca-bundle.crt ~/ca_certs
Add the custom certificate using the following Bash command:
pip config set global.cert ~/ca_certs
On Windows platform
Download the certificate bundle in PEM format.
Create a new directory and move the bundle to C:\ drive.
Add the certificate to the trust store using the following commands on PowerShell:
mv $env:HOMEPATH\Downloads\custom-ca-bundle.crt $env:APPDATA
pip config set global.cert $env:APPDATA\custom-ca-bundle.pem
Requests
Requests automatically search for any valid certificate in the REQUESTS_CA_BUNDLE environment variable.
To configure the REQUESTS_CA_BUNDLE environment variable:
On macOS, run the following Bash command:
echo "export REQUESTS_CA_BUNDLE=<Path to Certificate>/ca-bundle.crt" >> $HOME/.bash_profile
On Linux, run the following Bash command:
echo "export REQUESTS_CA_BUNDLE=<Path to Certificate>/ca-bundle.pem" >> $HOME/.bashrc
On Windows, run the following PowerShell command:
[System.Environment]::SetEnvironmentVariable("REQUESTS_CA_BUNDLE", "<Path to Certificate>\ca-bundle.crt", "Machine")
Pip.conf
trusted-host = pypi.org files.pythonhosted.org pypi.python.org
proxy = wpad.curie.fr:443
trusted-host = pypi.org files.pythonhosted.org pypi.python.org
proxy = wpad.curie.fr:443
~/.docker/config.json.Builds and containers use the configuration specified in this file.
The configuration becomes active after saving the file, you don't need to restart Docker{ "proxies": { "default": { "httpProxy": "http://wpad.curie.fr:80", "httpsProxy": "https://wpad.curie.fr:443",
"noProxy": "127.0.0.0/8" } } }
Proxy server = wpad.curie.fr
Proxy port = 443
Similarly, some applications (in terminal mode) may require you to set the proxy. To do this, from the terminal, you must force:
export https_proxy=https://wpad.curie.fr:443
export http_proxy=http://wpad.curie.fr:80