The Criminal Procedure (Directions in the Nature of Habeas Corpus) Rules
10. Habeas corpus ad testificandum.
10. Habeas corpus ad testificandum.
Where the evidence of a person who is in public custody is required at a trial or proceeding before a civil court, or before a court martial, or before commissioners acting under the authority of a commission, any party to the trial or proceeding may make application ex parte to a judge in chambers supported by affidavit that the prisoner be brought before such court or commissioners for the purpose of giving evidence, and the judge may thereupon direct that the prisoner be produced accordingly, and that the party requiring his production lodge a sufficient sum in court to meet the costs thereof.Source: Kenya Law