Fix cert issue

Generate self-signed certificates if needed for broker and node.