work: добавил функционал получения сертификатов с удаленного хоста по ssh
This commit is contained in:
@@ -127,6 +127,10 @@ class ServiceFunctions:
|
||||
"pathToCaddyCert",
|
||||
"pathToSaveFolder",
|
||||
"urlNas",
|
||||
"path_to_remote_ssh_cert",
|
||||
"is_load_cert_from_ssh",
|
||||
"ssh_host",
|
||||
"path_to_copy_ssh_cert"
|
||||
]
|
||||
|
||||
if not config.has_section("Settings"):
|
||||
@@ -147,6 +151,10 @@ class ServiceFunctions:
|
||||
credentials = Path(config.get("Settings", "pathToCredentials")),
|
||||
path_to_save_folder = Path(config.get("Settings", "pathToSaveFolder")),
|
||||
nas_url = config.get("Settings", "urlNas"),
|
||||
path_to_remote_ssh_cert=Path(config.get("Settings", "path_to_remote_ssh_cert")),
|
||||
is_load_cert_from_ssh=bool(config.get("Settings", "is_load_cert_from_ssh")),
|
||||
ssh_host=config.get("Settings", "ssh_host"),
|
||||
path_to_copy_ssh_cert=Path(config.get("Settings", "path_to_copy_ssh_cert"))
|
||||
)
|
||||
return appl_settings
|
||||
|
||||
|
||||
Reference in New Issue
Block a user