catch more errors when fetching certificates.