511. Previous conviction or acquittal how proved.

(a) by any extract certified under the hand of the officer having the custody of the records of the Court in which such conviction or acquittal was had to be a copy of the sentence or order ; or
(b) in case of a conviction, either by a certificate signed by the officer-in-charge of the jail in which the punishment or any part thereof was inflicted, or by production of the warrant of commitment under which the punishment was suffered ;