A person who knowingly undertakes to solemnize a civil marriage, without lawful authority to do so, is guilty of a misdemeanor.