Checking the authenticity of certificates