blob: 5ce4532f2b3365d5eb3b839220f61bd3d96caa14 (
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"
|