Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tools:certificates [2024/01/17 14:43] – [Legacy] will | tools:certificates [2025/10/10 14:23] (current) – [Firefox] will | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== UPMC Certificates ====== | ====== UPMC Certificates ====== | ||
| UPMC man in the middle' | UPMC man in the middle' | ||
| - | You might get the error | + | You might get the error on the terminal (from e.g. '' |
| > SSLError(SSLCerVerificationError, | > SSLError(SSLCerVerificationError, | ||
| + | |||
| + | or this message in firefox | ||
| + | > Software is Preventing Firefox From Safely Connecting to This Site | ||
| + | ===== Firefox ===== | ||
| + | |||
| + | Download [[http:// | ||
| + | |||
| + | - top right hamburger menu | ||
| + | - options | ||
| + | - scroll to '' | ||
| + | - 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 ===== | ||
| + | for CLI and terminal programs, you can accept the certificate across the system. | ||
| 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 47: | 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 | ||
| </ | </ | ||