Added certificate regeneration. Refactored server dashboard.

This commit is contained in:
2026-01-26 23:36:12 +00:00
parent 664e7be9f0
commit 9cf782ffd6
3 changed files with 45 additions and 32 deletions

View File

@@ -120,8 +120,8 @@ def _sign_public_key(
if not os.path.exists(cert_path):
stderr = result.stderr.decode("utf-8", "ignore")
raise RuntimeError(f"ssh-keygen output missing: {cert_path} {stderr}")
with open(cert_path, "r", encoding="utf-8") as handle:
return handle.read().strip()
with open(cert_path, "r", encoding="utf-8") as handle:
return handle.read().strip()
def _ensure_comment(public_key: str, comment: str) -> str: