work: добавил функционал получения сертификатов с удаленного хоста по ssh

This commit is contained in:
2026-10-29 21:41:34 +03:00
parent d50ec46b70
commit 11e201bfe6
4 changed files with 118 additions and 112 deletions
+8
View File
@@ -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