*export ssl manager
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Derrick Hammer 2022-12-19 12:17:33 -05:00
parent b57644836f
commit 9b9ff2118c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ import type Config from "@lumeweb/cfg";
import EventEmitter2 from "eventemitter2";
import log from "../log.js";
import { get as getSwarm } from "./swarm.js";
import { get as getSSl } from "./ssl.js";
import { get as getSSl, SSLManager } from "./ssl.js";
import type { HDKey } from "micro-ed25519-hdkey";
let pluginAPIManager: PluginAPIManager;
@ -78,7 +78,7 @@ class PluginAPI extends EventEmitter2 {
return getHDKey();
}
get ssl() {
get ssl(): SSLManager {
return getSSl();
}

View File

@ -5,7 +5,7 @@ import config from "../config.js";
export type SSLManagerRenewHandler = (domain: string) => Promise<boolean>;
class SSLManager {
export class SSLManager {
private _context?: tls.SecureContext;
private _key?: Buffer;
private _cert?: Buffer;