The sheriff shall deliver a person sentenced to be confined in the penitentiary to the warden of the penitentiary together with a certified copy of the judgment and sentence of the court ordering the imprisonment. The warden shall deliver to the sheriff a receipt in which the warden acknowledges the delivery to the sheriff of the prisoner, naming the prisoner. The sheriff shall return such receipt to the clerk of the court in which the conviction and sentence were had, and the clerk shall file and retain the same in the clerk's office.
N.D.C.C. § 11-15-26