The certificate of the commissioner of correction or of the warden or other chief officer of any prison, or of the superintendent or other chief officer of any penitentiary under the seal of his office containing name of person, a statement of the court in which conviction was had, the date and term of sentence, length of time imprisoned, and date of discharge from prison or penitentiary, shall be prima facie evidence of the imprisonment and discharge of any person under the conviction stated and set forth in such certificate for the purposes of any proceeding under section 400.20.
N.Y. Crim. Proc. Law § 400.22