monkeysphere: Add self-signed certificate section

This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2016-03-08 23:29:41 +05:30
1 parent 8c96d381e6
commit 79edbd6195
4 files changed
+116 -3

No files matched your search

+13
View File
@@ -41,6 +41,11 @@ def parse_arguments():
host_import_ssh_key.add_argument(
'hostname', help='Fully-qualified hostname')
host_import_https_key = subparsers.add_parser(
'host-import-https-key', help='Import host HTTPS key')
host_import_https_key.add_argument(
'hostname', help='Fully-qualified hostname')
host_publish_key = subparsers.add_parser(
'host-publish-key', help='Push host key to keyserver')
host_publish_key.add_argument(
@@ -91,6 +96,14 @@ def subcommand_host_import_ssh_key(arguments):
print(output.decode())
def subcommand_host_import_https_key(arguments):
"""Import host HTTPS key."""
output = subprocess.check_output(
['monkeysphere-host', 'import-key',
'/etc/ssl/private/ssl-cert-snakeoil.key', arguments.hostname])
print(output.decode())
def subcommand_host_publish_key(arguments):
"""Push host key to keyserver."""
# setting TMPDIR as workaround for Debian bug #656750