Verifying the integrity of a certificate