Error handling for corrupted certificate.