From 5971e478532e4e0d869160d16ed46c4496e2f6a0 Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Mon, 20 May 2019 22:11:01 +0200 Subject: [PATCH] Added Certificates interface --- src/schema.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/schema.ts b/src/schema.ts index f9f4d37..5675bcf 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -3,16 +3,19 @@ import debug from "debug"; const schemaDebug = debug("Schema"); +export interface Certificates { + wwdr?: string; + signerCert?: string; + signerKey?: { + keyFile: string; + passphrase?: string; + }; + _raw?: Certificates; +} + export interface FactoryOptions { model: { [key: string]: Buffer } | string; - certificates: { - wwdr: string; - signerCert: string; - signerKey: { - keyFile: string; - passphrase?: string; - }; - }; + certificates: Certificates; overrides?: Object; shouldOverwrite?: boolean; }