mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-08-29 18:31:33 +00:00
feat: rework Electron desktop app to run standalone-first with optional two-way sync to a remote Termix server
This commit is contained in:
@@ -460,9 +460,9 @@ export function registerAcmeSSLRoutes(
|
||||
!certificate.includes("BEGIN CERTIFICATE") ||
|
||||
!privateKey.includes("PRIVATE KEY")
|
||||
) {
|
||||
return res
|
||||
.status(400)
|
||||
.json({ error: "A valid PEM certificate and private key are required" });
|
||||
return res.status(400).json({
|
||||
error: "A valid PEM certificate and private key are required",
|
||||
});
|
||||
}
|
||||
|
||||
await fs.mkdir(SSL_DIR, { recursive: true });
|
||||
@@ -485,7 +485,8 @@ export function registerAcmeSSLRoutes(
|
||||
);
|
||||
} catch {
|
||||
return res.status(400).json({
|
||||
error: "The provided certificate or private key is not valid PEM data",
|
||||
error:
|
||||
"The provided certificate or private key is not valid PEM data",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user