File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11import FS from "fs" ;
22import path from "path" ;
3- import { pki , md } from "node-forge" ;
3+ import Forge from "node-forge" ;
4+ const { pki, md } = Forge ;
45import mkdirp from "mkdirp" ;
56import async from "async" ;
67import ErrnoException = NodeJS . ErrnoException ;
@@ -127,12 +128,12 @@ const ServerExtensions = [
127128 } ,
128129] as any [ ] ;
129130
130- class CA {
131+ export class CA {
131132 baseCAFolder ! : string ;
132133 certsFolder ! : string ;
133134 keysFolder ! : string ;
134- CAcert ! : ReturnType < typeof pki . createCertificate > ;
135- CAkeys ! : ReturnType < typeof pki . rsa . generateKeyPair > ;
135+ CAcert ! : ReturnType < typeof Forge . pki . createCertificate > ;
136+ CAkeys ! : ReturnType < typeof Forge . pki . rsa . generateKeyPair > ;
136137
137138 static create ( caFolder , callback ) {
138139 const ca = new CA ( ) ;
You can’t perform that action at this time.
0 commit comments