aboutsummaryrefslogtreecommitdiff
path: root/core/ca-certificates/files/cert.sh
blob: a4d23dda1b016fdeb2029cde2f24cd42286a89d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e
#
# update-certdata

DEST="$KISS_ROOT/etc/certificates"

[ -d "$DEST"]  || mkdir -p "$DEST"

[ -w "$DEST" ] || {
    printf '%s\n' "${0##*/}: root required to update CA certificates." >&2
    exit 1
}

wget https://curl.haxx.se/ca/cacert.pem -O "$DEST/cert.pem"
printf '%s\n' "${0##*/}: updated cert.pem"