Skip to content

Commit

Permalink
fix(profiler): workaround certificate expiration issue in integration…
Browse files Browse the repository at this point in the history
… tests (#4955)

Let's Encrypt CA certification expiration is causing integration tests to fail.
This commit works around this problem by removing the problematic certificate.

Context: https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
  • Loading branch information
amchiclet authored Oct 7, 2021
1 parent 25cd7a1 commit de9e465
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions profiler/kokoro/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ set -eo pipefail
# Display commands being run.
set -x

# Remove expired certificate; otherwise `go mod download` may fail.
# See https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
# for more context.
sudo apt-get install -y ca-certificates
sudo rm -f /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
sudo update-ca-certificates

cd $(dirname $0)/..

export GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_KEYSTORE_DIR}/72935_cloud-profiler-e2e-service-account-key"
Expand Down

0 comments on commit de9e465

Please sign in to comment.