From 9d4908b7161e0aade0915d2d88a43b0a6bfc9791 Mon Sep 17 00:00:00 2001 From: Amarin Phaosawasdi Date: Wed, 6 Oct 2021 13:00:21 -0700 Subject: [PATCH] fix: workaround certificate expiration issue in integration tests (#773) 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/ --- system-test/integration_test.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/system-test/integration_test.sh b/system-test/integration_test.sh index 0664cad6..cd5fb7c2 100755 --- a/system-test/integration_test.sh +++ b/system-test/integration_test.sh @@ -14,6 +14,13 @@ set -eo pipefail # Display commands being run. set -x +# Remove expired certificate; otherwise `go get` 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)/.. SERVICE_KEY="${KOKORO_KEYSTORE_DIR}/72935_cloud-profiler-e2e-service-account-key"