Add self signed cert generation and switch, plus ssl enable switch