Add certificate generation

This commit is contained in:
Owen
2026-09-09 16:41:49 -04:00
parent 3421441635
commit 7e4d38548f
19 changed files with 1909 additions and 40 deletions
+40
View File
@@ -0,0 +1,40 @@
/*
* This file is part of a proprietary work.
*
* Copyright (c) 2025-2026 Fossorial, Inc.
* All rights reserved.
*
* This file is licensed under the Fossorial Commercial License.
* You may not use this file except in compliance with the License.
* Unauthorized use, copying, modification, or distribution is strictly prohibited.
*
* This file is not licensed under the AGPLv3.
*/
import logger from "@server/logger";
import { acmeClientManager } from "./acme-client";
import { jobScheduler } from "./scheduler";
// Request a new certificate
// await certificateService.addCertificateRequest(domain);
logger.info("Starting certificate management server...");
// Initialize ACME client
await acmeClientManager.initialize();
// Start job scheduler
await jobScheduler.start();
// Graceful shutdown
process.on("SIGTERM", async () => {
logger.info("Received SIGTERM, shutting down gracefully");
await jobScheduler.stop();
process.exit(0);
});
process.on("SIGINT", async () => {
logger.info("Received SIGINT, shutting down gracefully");
await jobScheduler.stop();
process.exit(0);
});