Generate a self-signed cert when none is provided

The documentation suggested doing this manually, but this is better because it does it for you!
Won't it interpret this as part of the script since this is the same level of indentation?