add README

master
Arturius 2023-09-27 17:12:51 +03:00
parent 1ef0523a3d
commit 855ace237e
2 changed files with 1 additions and 1 deletions

0
README.md 100644
View File

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
DIR=~/rootcerts DIR=~/rootcerts
mkdir -p "${DIR}" 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- ) cat "${DIR}/rootcerts.pem" | (cd $DIR && split -p '-----BEGIN CERTIFICATE-----' - cert- )
for c in ${DIR}/cert-* ; do for c in ${DIR}/cert-* ; do
echo "security -v add-trusted-cert -d -r trustRoot -k \"/Library/Keychains/System.keychain\" \"$c\"" >> "${DIR}/tmp.sh" echo "security -v add-trusted-cert -d -r trustRoot -k \"/Library/Keychains/System.keychain\" \"$c\"" >> "${DIR}/tmp.sh"