Removing certificates code