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

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

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