Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

travis: remove expired DST Root CA X3 cert on trusty #2192

Merged
merged 1 commit into from
Oct 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ install:
- pip install --upgrade "setuptools<=39.2.0; python_version < '3.9'"
- pip install --upgrade -r requirements.txt -r dev-requirements.txt
- python setup.py develop
before_script:
# deal with Let's Encrypt's ISRG Root CA X1 being cross-signed by an expired root
# only needed on trusty - mark the bad cert disabled in conf, update ca-certificates
# bundle, then tell python-requests to use the system bundle instead of certifi's
# (as of 2021-10-05, certifi still stubbornly bundles the expired root;
# see https://github.com/certifi/python-certifi/pull/162
# and https://bugzilla.mozilla.org/show_bug.cgi?id=1733560 for updates)
- if [ "$TRAVIS_DIST" == "trusty" ]; then
sudo sed -re 's#^(mozilla/DST_Root_CA_X3.crt)$#!\1#' -i /etc/ca-certificates.conf;
sudo update-ca-certificates;
export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt;
fi
script:
- make travis
env:
Expand Down