"feat: Implement SSL configuration for frontend and backend"
This commit is contained in:
@@ -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 = [
|
||||
|
Reference in New Issue
Block a user