Skip to content

Commit 7bd87b0

Browse files
committed
[Infra]: - remove the expired "DST Root CA X3" Let’s Encrypt certificate
- alternative certificate ("ISRG Root X1") is in place to handle the verification process Reference: f4pga/f4pga-arch-defs#2290 Explanation: https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/ Co-author: Tim 'mithro' Ansell <[email protected]> Signed-off-by: Seyed Alireza Damghani <[email protected]>
1 parent 72e9146 commit 7bd87b0

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/kokoro/steps/hostsetup.sh

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,24 @@ echo "----------------------------------------"
1111

1212
echo
1313
echo "========================================"
14-
echo "Host not verifying certificate name matches server name"
14+
echo "Update the CA certificates"
1515
echo "----------------------------------------"
16-
echo | sudo tee -a /etc/apt/apt.conf.d/80-ignore-ssl-issues <<EOF
17-
// Do not verify peer certificate
18-
Acquire::https::Verify-Peer "false";
19-
// Do not verify that certificate name matches server name
20-
Acquire::https::Verify-Host "false";
21-
EOF
16+
sudo apt-get install -y ca-certificates
2217
echo "----------------------------------------"
18+
sudo update-ca-certificates
19+
echo "----------------------------------------"
20+
21+
echo
22+
echo "========================================"
23+
echo "Remove the expired letsencrypt.org cert "
24+
echo "----------------------------------------"
25+
sudo rm /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
26+
echo "----------------------------------------"
27+
sudo update-ca-certificates
28+
echo "----------------------------------------"
29+
wget https://helloworld.letsencrypt.org/ || true
30+
echo "----------------------------------------"
31+
2332

2433
echo
2534
echo "========================================"

0 commit comments

Comments
 (0)