Converted certificates files names into paths; Removed dir property from the schema

This commit is contained in:
alexandercerutti
2018-07-23 17:21:06 +02:00
parent ad55d3aeba
commit b1daa2d216
3 changed files with 3 additions and 8 deletions

View File

@@ -446,13 +446,11 @@ class Pass {
}
this.model = path.resolve(options.model) + (!path.extname(options.model) ? ".pass" : "");
this.Certificates.dir = options.certificates.dir;
let certPaths = Object.keys(options.certificates)
.filter(v => v !== "dir")
.map((val) =>
path.resolve(
this.Certificates.dir,
typeof options.certificates[val] !== "object" ? options.certificates[val] : options.certificates[val]["keyFile"]
)
);