"feat: Implement SSL configuration for frontend and backend"

This commit is contained in:
2025-05-26 10:54:17 +02:00
parent f063d07232
commit 7893e1b904
7 changed files with 1386 additions and 192 deletions

View File

@@ -151,7 +151,20 @@ def install_certificate_system():
try:
import subprocess
ssl_cert_path = os.path.abspath("app/instance/ssl/myp.crt")
import os
ssl_cert_path = os.path.abspath(os.path.join("app", "instance", "ssl", "myp.crt"))
# Prüfen, ob Datei existiert
if not os.path.exists(ssl_cert_path):
print(f"Zertifikat nicht gefunden unter: {ssl_cert_path}")
# Alternativen Pfad versuchen
alt_path = os.path.abspath(os.path.join("backend", "app", "instance", "ssl", "myp.crt"))
if os.path.exists(alt_path):
ssl_cert_path = alt_path
print(f"Verwende alternativen Pfad: {ssl_cert_path}")
else:
print("Zertifikat konnte nicht gefunden werden.")
return False
# Befehle zum Installieren des Zertifikats im Windows-Zertifikatsspeicher
commands = [