Skip to content

Commit

Permalink
Merge pull request #2192 from sopel-irc/trusty-expired-LE-root
Browse files Browse the repository at this point in the history
travis: remove expired DST Root CA X3 cert on trusty
  • Loading branch information
dgw authored Oct 8, 2021
2 parents d922732 + d075d51 commit 91652f0
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit 91652f0

Please sign in to comment.