All state officers before entering upon their respective duties shall take and subscribe an oath or affirmation to support the constitution of the United States and the constitution of this state, and faithfully to discharge the duties of their respective offices.