catch exceptions while fetching certificates