Package: macathena-ssl-certificates Version: 88 Revision: 4 Source: http://macathena.mit.edu/dist/ssl-certificates-svn%v.tar.gz Maintainer: SIPB MacAthena Project HomePage: http://macathena.mit.edu/ License: Public Domain Description: Install the MIT CA into the Keychain DescPackaging: << This package installs the MIT CA into the system keychain. Uninstalling this package does not remove the certificate. << Source-MD5: 0dee4abcd1fc98e747e10dc7e6fc2673 DocFiles: copyright CompileScript: << << InstallScript: << mkdir -p %i/share/%n/ cp %b/mitCA.pem %i/share/%n/ openssl x509 -inform pem -outform der -in %i/share/%n/mitCA.pem -out %i/share/%n/mitCA.der << PostInstScript: << VERSION=`/usr/bin/sw_vers -productVersion | cut -d. -f1-2` if [ "$VERSION" == "10.5" ] then security find-certificate -e "MIT Certification Authority" || security add-trusted-cert -d -k /Library/Keychains/System.keychain %p/share/%n/mitCA.pem else security find-certificate -e "MIT Certification Authority" /Library/Keychains/System.keychain /System/Library/Keychains/X509Anchors || security add-cert -k /System/Library/Keychains/X509Anchors %p/share/%n/mitCA.der fi <<