Upon rendition of such judgment against a corporation, or for the vacating or annulling of letters patent, the attorney general shall forthwith cause a copy of the judgment roll to be filed with the secretary of state.