The Secretary of State doesn't certify it, the county election canvassers and the State Board of Canvassers do.
Ok don’t let them do if the court determines the election is illegal.