Mortgage guaranty insurance may be transacted by a stock casualty insurer or a stock surety insurer holding a certificate of authority for the transaction of insurance in this state.