Skip to content

Commit

Permalink
add nextdns root ca
Browse files Browse the repository at this point in the history
  • Loading branch information
benc committed Jan 2, 2025
1 parent 760fdb6 commit 58b2aca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions chezmoi/.chezmoiscripts/darwin/run_onchange_before_nextdns.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
if security find-certificate -c "NextDNS" /Library/Keychains/System.keychain >/dev/null 2>&1; then
echo "NextDNS certificaat is al geïnstalleerd"
else
echo "NextDNS certificaat wordt gedownload en geïnstalleerd..."
curl -fsSL -o "/tmp/NextDNS.cer" https://nextdns.io/ca
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain "/tmp/NextDNS.cer"
rm -rfv "/tmp/NextDNS.cer"
echo "Installatie voltooid"
fi

0 comments on commit 58b2aca

Please sign in to comment.