Skip to content

Instantly share code, notes, and snippets.

@dragolabs
Created May 31, 2020 07:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dragolabs/e1f5b026b84d74680b6b082246787a39 to your computer and use it in GitHub Desktop.
Save dragolabs/e1f5b026b84d74680b6b082246787a39 to your computer and use it in GitHub Desktop.
Fix expired sectigo ca certificate on ubuntu =< 16.04 and debian =< 9
#!/bin/bash
# more info:
# https://support.sectigo.com/articles/Knowledge/Sectigo-AddTrust-External-CA-Root-Expiring-May-30-2020
# https://www.reddit.com/r/linux/comments/gshh70/sectigo_root_ca_expiring_may_not_be_handled_well/
apt-get update
apt-get install --reinstall ca-certificates
sed -i '/AddTrust_External_Root.crt/d' /etc/ca-certificates.conf
rm /usr/share/ca-certificates/mozilla/AddTrust_External_Root.crt
update-ca-certificates -f -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment