mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
working on edge key with public server key.
This commit is contained in:
@@ -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`,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user