Generate tls certificate on startup
Unless there is already a TLS certificate, then immediately continue with the rest of the initialisation.