Add better error message when certificate chain verification fails