31 lines
516 B
Python
31 lines
516 B
Python
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: Path
|
|
dir_cert: Path
|
|
|
|
|
|
@dataclass
|
|
class DSMInfo:
|
|
certificate_name: str
|
|
private_key_path: Path
|
|
certificate_pem_path: Path
|
|
path_to_fullchain: Path
|
|
dsm_id_cert: str
|
|
|
|
|
|
@dataclass
|
|
class DSMAuthInfo:
|
|
sid: str
|
|
token: str
|
|
|
|
@dataclass
|
|
class DSMCredentials:
|
|
user_name: str
|
|
password: str |