15
16
17
18
19
20
21
|
rm -rf /Library/Security/tokend/PKCS11.tokend
# Forget about packages installed
echo "Removing saved Mac OS X package information for CACKey..."
for package in `pkgutil --pkgs | grep -i CACKey`; do
pkgutil --forget ${package}
done
|
>
>
>
>
>
>
|
15
16
17
18
19
20
21
22
23
24
25
26
27
|
rm -rf /Library/Security/tokend/PKCS11.tokend
# Forget about packages installed
echo "Removing saved Mac OS X package information for CACKey..."
for package in `pkgutil --pkgs | grep -i CACKey`; do
pkgutil --forget ${package}
done
# If on Sierra or newer, reenable the pivtoken CryptoTokenKit
echo "Reenabling the builtin pivtoken CryptoTokenKit..."
if [ "`uname -r | cut -d '.' -f 1`" -ge "16" ]; then
security smartcards token -e com.apple.CryptoTokenKit.pivtoken
fi
|