From 9d196b28dd9e22c7295a8363b5936ad1910c02e9 Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Fri, 23 Sep 2016 16:28:02 +0200 Subject: [PATCH] change CA generation to new API --- ca_shell.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ca_shell.py b/ca_shell.py index 22194fc..16afdbd 100755 --- a/ca_shell.py +++ b/ca_shell.py @@ -62,13 +62,7 @@ class CAManagerShell(cmd.Cmd, object): print("Malformed input: %s" % l) return - if ca_type == "ssl": - self.ca_manager.create_ssl_ca(ca_id, ca_name) - elif ca_type == "ssh": - self.ca_manager.create_ssh_ca(ca_id, ca_name) - else: - print("Invalid CA type: %s" % ca_type) - return + self.ca_manager.ca[ca_id] = (ca_name, ca_type) def complete_gen_ca(self, text, line, begidx, endidx):