Реализовал функцию импорта сертификатов. Если он есть она обновляет, если сертификат было по умолнчаию она оставляет по умолчанию

This commit is contained in:
Fedorov Dmitriy
2026-08-26 23:24:38 +03:00
parent 37c1cad913
commit ff6796af9f
5 changed files with 375 additions and 21 deletions
+16 -5
View File
@@ -1,18 +1,29 @@
from dataclasses import dataclass
from datetime import datetime
from pathlib import Path
@dataclass
class CertInfo:
domain_name: str
fingerprint: str
expires_at: datetime
path_to_key: str
path_to_key: Path
dir_cert: Path
@dataclass
class DSMInfo:
certificate_name: str
private_key_path: str
certificate_pem_path: str
private_key_pem_path: str
private_key_path: Path
certificate_pem_path: Path
path_to_fullchain: Path
@dataclass
class DSMAuthInfo:
sid: str
token: str
@dataclass
class DSMCredentials:
user_name: str
password: str