mirror of
https://github.com/lloeki/toolbelt.git
synced 2025-12-06 10:04:40 +01:00
14 lines
393 B
Bash
Executable file
14 lines
393 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
set -o nounset
|
|
|
|
certs=/usr/local/share/ca-bundle.crt
|
|
tmp_certs=`mktemp -t update-local-certificates`
|
|
|
|
security find-certificate -a -p /Library/Keychains/System.keychain > $tmp_certs
|
|
security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain >> $tmp_certs
|
|
security find-certificate -a -p >> $tmp_certs
|
|
|
|
chmod a+r $tmp_certs
|
|
mv $tmp_certs $certs
|