Browse Source

add shell command to generate ssl ca

cmd_module
Edoardo Putti 8 years ago
parent
commit
b0713b1b24
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      ca_shell.py

+ 10
- 0
ca_shell.py View File

@ -33,6 +33,16 @@ class CAManagerShell(cmd.Cmd, object):
except ValueError:
print "Malformed input: %s" % l
def do_gen_ssl_ca(self, l):
'Generate a SSL certification authority: GEN_SSL_CA id name'
try:
[ca_id, ca_name] = l.split(" ", 2)[:2]
self.ca_manager.create_ssl_ca(ca_id, ca_name)
except ValueError:
print "Malformed input: %s" % l
def do_quit(self, l):
'Quit this shell'
return True

Loading…
Cancel
Save