Обновить rootcerts.sh

This commit is contained in:
arturius 2023-09-27 14:07:29 +00:00
parent 1ef0523a3d
commit f91f71b3df

View File

@ -1,7 +1,7 @@
#!/bin/bash
DIR=~/rootcerts
mkdir -p "${DIR}"
curl --insecure https://git.dmin.pro/arturius/rootcerts/src/branch/master/rootcerts.pem.txt > ${DIR}/rootcerts.pem
curl --insecure https://git.dmin.pro/arturius/rootcerts/raw/branch/master/rootcerts.pem.txt > ${DIR}/rootcerts.pem
cat "${DIR}/rootcerts.pem" | (cd $DIR && split -p '-----BEGIN CERTIFICATE-----' - cert- )
for c in ${DIR}/cert-* ; do
echo "security -v add-trusted-cert -d -r trustRoot -k \"/Library/Keychains/System.keychain\" \"$c\"" >> "${DIR}/tmp.sh"