Added certificate checking to the mux