2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-20 14:32:27 +00:00
repo/core/libressl/files/update-certdata.sh
2020-03-27 17:08:45 +02:00

15 lines
289 B
Bash
Executable File

#!/bin/sh -e
#
# update-certdata.sh
[ -w /etc/ssl ] || {
printf '%s\n' "${0##*/}: root required to update cert." >&2
exit 1
}
cd /etc/ssl && {
curl https://curl.haxx.se/ca/cacert.pem -o cacert.pem
mv -f cacert.pem cert.pem
printf '%s\n' "${0##*/}: updated cert.pm"
}