From 38898ca92158c68f11492ddf448444833d7fd0f2 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 19 Jun 2018 11:05:38 -0400 Subject: [PATCH] Auto-make certificate if missing Automatically fix a missing certificate if this is the case. --- confluent_server/bin/confluentutil | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/confluent_server/bin/confluentutil b/confluent_server/bin/confluentutil index 98361fd9..bf68a552 100644 --- a/confluent_server/bin/confluentutil +++ b/confluent_server/bin/confluentutil @@ -37,6 +37,8 @@ def make_certificate(): def show_invitation(name): + if not os.path.exists('/etc/confluent/srvcert.pem'): + make_certificate() s = client.Command().connection tlvdata.send(s, {'collective': {'operation': 'invite', 'name': name}}) invite = tlvdata.recv(s)['collective']['invitation'] @@ -44,6 +46,8 @@ def show_invitation(name): def join_collective(server, invitation): + if not os.path.exists('/etc/confluent/srvcert.pem'): + make_certificate() s = client.Command().connection while not invitation: invitation = raw_input('Paste the invitation here: ')