File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,24 @@ echo "----------------------------------------"
11
11
12
12
echo
13
13
echo " ========================================"
14
- echo " Host not verifying certificate name matches server name "
14
+ echo " Update the CA certificates "
15
15
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
22
17
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
+
23
32
24
33
echo
25
34
echo " ========================================"
You can’t perform that action at this time.
0 commit comments