mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
monkeysphere: Add self-signed certificate section
This commit is contained in:
1 parent
8c96d381e6
commit
79edbd6195
4 files changed
+116
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user