Bail may be given to the sheriff or officer holding the defendant in custody, by a fidelity or surety insurance company authorized to act as surety within the State of Mississippi. Any such company may execute the undertaking as surety by the hand of officer or attorney authorized thereto by a resolution of its board of directors, a certified copy of which, under its corporate seal, shall be on file with the clerk of the circuit court and the sheriff of the county, and such authority shall be deemed in full force and effect until revoked in writing by notice to said clerk and sheriff.