Apple patches iOS security certificate flaw