When, by the laws of the state or by a charter, ordinance, rule, or regulation of a political subdivision, municipality, public corporation, or by a board, body, organization, court, or judge, a recognizance, stipulation, bond, undertaking, or bail in an action, suit, proceeding, or matter conditioned for the faithful performance of an act or duty or for the doing of an act or thing is permitted or required to be given with one or more sureties, it is sufficient compliance if the instrument is executed by a corporation that has complied with the laws of the state and is authorized by law to act as surety upon instruments and in proceedings, actions, suits, and matters as set out in this section.