Added Certificates interface

This commit is contained in:
Alexander Cerutti
2019-05-20 22:11:01 +02:00
parent 96004162c6
commit 5971e47853

View File

@@ -3,16 +3,19 @@ import debug from "debug";
const schemaDebug = debug("Schema");
export interface FactoryOptions {
model: { [key: string]: Buffer } | string;
certificates: {
wwdr: string;
signerCert: string;
signerKey: {
export interface Certificates {
wwdr?: string;
signerCert?: string;
signerKey?: {
keyFile: string;
passphrase?: string;
};
};
_raw?: Certificates;
}
export interface FactoryOptions {
model: { [key: string]: Buffer } | string;
certificates: Certificates;
overrides?: Object;
shouldOverwrite?: boolean;
}