Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tools:certificates [2024/02/05 13:04] – [UPMC Certificates] will | tools:certificates [2025/10/10 14:23] (current) – [Firefox] will | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ===== Firefox ===== | ===== Firefox ===== | ||
| - | Download [[http:// | + | Download [[http:// |
| - | - top right hamberger | + | - top right hamburger |
| - options | - options | ||
| - scroll to '' | - scroll to '' | ||
| - Click '' | - Click '' | ||
| - '' | - '' | ||
| + | |||
| + | ===== Containers ===== | ||
| + | |||
| + | For some docker and singularity containers, you can bind mount [[: | ||
| + | |||
| + | In docker, that looks like | ||
| + | < | ||
| + | docker run \ | ||
| + | -v / | ||
| + | -e REQUESTS_CA_BUNDLE=/ | ||
| + | ... | ||
| + | </ | ||
| + | |||
| ===== Terminal ===== | ===== Terminal ===== | ||
| Line 21: | Line 34: | ||
| To allow UPMC's cert in the SSL chain on debian, run: | To allow UPMC's cert in the SSL chain on debian, run: | ||
| < | < | ||
| - | | + | # as root |
| - | cd / | + | [ $(id -u) -ne 0 ] && echo "with sudo" && exit 1 |
| - | cert_loc=http:// | + | |
| - | for crt in UPMC-CA23 UPMC-CA20 UPMC-ROOT-CA; | + | cd / |
| - | | + | cert_loc=https:// |
| - | | + | # 20250313 - added "UPMC ROOT CA 2023" via Nathan Safran |
| - | | + | for crt in UPMC-CA23 UPMC-CA20 UPMC-ROOT-CA |
| - | done | + | ! wget " |
| - | update-ca-certificates | + | |
| + | | ||
| + | done | ||
| + | update-ca-certificates | ||
| </ | </ | ||
| Line 62: | Line 78: | ||
| ==== Python ==== | ==== Python ==== | ||
| - | newer '' | + | For python tools that internally use the '' |
| + | < | ||
| + | export REQUESTS_CA_BUNDLE=/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | === venv/ | ||
| + | For python virtual environments, | ||
| + | < | ||
| + | pycert=$(python -c ' | ||
| + | |||
| + | cat $newcert_pem >> $pycert | ||
| + | </ | ||
| + | |||
| + | (Will note: '' | ||
| + | |||
| + | === urllib === | ||
| + | |||
| + | Newer '' | ||
| < | < | ||
| pip install urllib3==1.26.12 | pip install urllib3==1.26.12 | ||
| </ | </ | ||