working on edge key with public server key.

This commit is contained in:
charlesgauthereau
2025-10-31 17:55:16 +01:00
parent e3239639f3
commit 027928c29f
5 changed files with 38 additions and 17 deletions
+17
View File
@@ -0,0 +1,17 @@
import fs from "node:fs";
/**
* Get Public server key content
*/
export function getPublicServerKeyContent() {
try {
return fs.readFileSync("private/keys/server_public.pem", "utf8");
} catch (error: any) {
console.error("Error :", error);
return {
success: false,
message: `An error occurred while getting public server key`,
};
}
}