Skip to content

Commit 0a14f23

Browse files
author
mlebot
committed
Install CADSI in /usr/local/share/ca-certificates
1 parent 9de6115 commit 0a14f23

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

install_certs-21

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,18 @@ mkdir -p /certificates
2020
for cert_url in $CERT_URLS
2121
do
2222
cert_file="$(basename "$cert_url")"
23+
cert_file="${cert_file%.pem}.crt"
2324
cert_path="/certificates/$cert_file"
2425

2526
curl "$cert_url" -o "$cert_path"
2627

2728
# Badly formatted certs break the entire file in alpine
2829
# Adds an eol char at the end of the file if not already present
2930
sed -i -e '$a\' "$cert_path"
31+
32+
# 2nd part, install cert in ca-certificates
33+
cp /certificates/$cert_file /usr/local/share/ca-certificates/$cert_file
34+
3035
done
36+
37+
update-ca-certificates

0 commit comments

Comments
 (0)