Created
September 6, 2020 02:25
-
-
Save illuzian/0e194000b6cf5c05724fe3c68710d746 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script first clears the CRL cache in the event a proxy CA, internal CA, scanning tool CA or AV CA gets trusted for | |
# something it shouldn't and your mac won't accept the genuine certificate. | |
# After clearing the CRL cache this script shreds the App Store caches - probably restart after and try downloading from the | |
# App Store again. | |
# If it doesn't fix your problem.... well good luck, may Google be by your side. | |
# Clear crl and oscp cache | |
sudo rm /var/db/crls/*.db | |
# Kill app store related processes if they are running. | |
killall storeaccountd | |
killall storeassetd | |
killall storedownloadd | |
killall storeinappd | |
# Delete App Store related process caches. | |
rm -rf ~/Library/Caches/com.apple.appstore/CommerceRequestCache/* | |
rm -rf ~/Library/Caches/storeaccountd | |
rm -rf ~/Library/Caches/storeassetd | |
rm -rf ~/Library/Caches/storedownloadd | |
rm -rf ~/Library/Caches/storeinappd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment