Added certificate regeneration. Refactored server dashboard.
This commit is contained in:
1 parent
664e7be9f0
commit
9cf782ffd6
3 files changed
+45
-32
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user