Обновить rootcerts.sh
This commit is contained in:
parent
1ef0523a3d
commit
f91f71b3df
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user