Fix certificate check for the JSON file