ssl_de/encrypt new works

This commit is contained in:
2025-05-12 15:11:40 +02:00
parent fb0158d1cd
commit 3da54642a0
5 changed files with 40 additions and 37 deletions

View File

@ -7,7 +7,7 @@ from subprocess import CompletedProcess
import subprocess
from wp_app_config import AppConfig
log_name = AppConfig.USER_FILE.read_text()
log_name = AppConfig.USER_FILE.read_text().strip()
keyfile: Path = Path(f"/home/{log_name}/.config/wire_py/pbwgk.pem")
path_of_crypted_tunnel: Path = Path(f"/home/{log_name}/.config/wire_py")
@ -60,7 +60,7 @@ if AppConfig.PUBLICKEY.exists:
text=True,
check=False,
)
shutil.chown(f"{AppConfig.TEMP_DIR}/{base_name}.conf", 1000, 1000)
print(f"Processing of the file: {tunnel_path}")
if process.stdout: