chore: Add the getSsl effects

This commit is contained in:
BluJ
2023-03-06 15:53:42 -07:00
parent b4fc6e891e
commit 8573a483b1
13 changed files with 90 additions and 77 deletions

View File

@@ -269,6 +269,19 @@ export type Effects = {
* @param configured
*/
setConfigured(configured: boolean): Promise<void>;
/**
*
* @returns PEM encoded fullchain (ecdsa)
*/
getSslCertificate: (
packageId: string,
algorithm?: "ecdsa" | "ed25519",
) => [string, string, string];
/**
* @returns PEM encoded ssl key (ecdsa)
*/
getSslKey: (packageId: string, algorithm?: "ecdsa" | "ed25519") => string;
};
/* rsync options: https://linux.die.net/man/1/rsync