We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c843d47 commit 945975fCopy full SHA for 945975f
1 file changed
lib/ca.ts
@@ -1,6 +1,7 @@
1
import FS from "fs";
2
import path from "path";
3
-import { pki, md } from "node-forge";
+import Forge from "node-forge";
4
+const { pki, md } = Forge;
5
import mkdirp from "mkdirp";
6
import async from "async";
7
import ErrnoException = NodeJS.ErrnoException;
@@ -127,12 +128,12 @@ const ServerExtensions = [
127
128
},
129
] as any[];
130
-class CA {
131
+export class CA {
132
baseCAFolder!: string;
133
certsFolder!: string;
134
keysFolder!: string;
- CAcert!: ReturnType<typeof pki.createCertificate>;
135
- CAkeys!: ReturnType<typeof pki.rsa.generateKeyPair>;
+ CAcert!: ReturnType<typeof Forge.pki.createCertificate>;
136
+ CAkeys!: ReturnType<typeof Forge.pki.rsa.generateKeyPair>;
137
138
static create(caFolder, callback) {
139
const ca = new CA();
0 commit comments