If the commissioner exacts or receives, either directly or indirectly, any sum of money from any insurance company doing business in this state other than the fees allowed by law, or willfully issues a fraudulent or false certificate of soundness to the company; or, directly or indirectly, receives any money or other valuable thing for doing or not doing any official act as commissioner, other than the fees allowed by law, the commissioner commits a Class E felony.