Skip to content

Instantly share code, notes, and snippets.

@Willian-Zhang
Last active December 26, 2021 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Willian-Zhang/7ed1d483dffc9087be816ad255a00203 to your computer and use it in GitHub Desktop.
Save Willian-Zhang/7ed1d483dffc9087be816ad255a00203 to your computer and use it in GitHub Desktop.
Delete OCSP and CRL cache from GlobalSign on after Catalina
#!/bin/zsh
for url in /private/var/folders/**/ocspcache.sqlite3;
do
echo "- clearing $url"
sudo sqlite3 $url 'DELETE FROM responses WHERE responderURI LIKE "%http://%.http://globalsign.com/%";';
done
for url in /System/Volumes/Data/private/var/folders/**/ocspcache.sqlite3;
do
echo "- clearing $url"
sudo sqlite3 $url 'DELETE FROM responses WHERE responderURI LIKE "%http://%.http://globalsign.com/%";';
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment