From 855ace237e3ba58b3bd431dc93de9ceddcd15c2c Mon Sep 17 00:00:00 2001 From: Arturius Date: Wed, 27 Sep 2023 17:12:51 +0300 Subject: [PATCH] add README --- README.md | 0 rootcerts.sh | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/rootcerts.sh b/rootcerts.sh index 1f01889..5cbcc3c 100644 --- a/rootcerts.sh +++ b/rootcerts.sh @@ -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"