A person not authorized by this chapter who wilfully or knowingly undertakes to solemnize a marriage in this state is guilty of a misdemeanor, and upon conviction is punishable by imprisonment for not more than one year, or by a fine of not more than $1,000, or by both.