Added a way to auto-gen a self signed certificate