2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-24 16:30:04 -07: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"
}