Fix a certificate check for wmf