mirror of
https://github.com/lloeki/toolbelt.git
synced 2025-12-06 01:54:41 +01:00
new: export certs from keychain
This commit is contained in:
parent
72e401c0dd
commit
fd27f9a3ad
1 changed files with 14 additions and 0 deletions
14
update-local-certificates
Executable file
14
update-local-certificates
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue