Such appointment shall be made in writing, under the hands of the selectmen, and recorded, with a certificate of the oath of office thereon, by the town clerk.