diff --git a/ts/smartnginx.classes.smartnginx.ts b/ts/smartnginx.classes.smartnginx.ts index afdfe93..fd0f154 100644 --- a/ts/smartnginx.classes.smartnginx.ts +++ b/ts/smartnginx.classes.smartnginx.ts @@ -123,7 +123,7 @@ export class SmartNginx { // deploy hosts plugins.smartfile.fs.ensureDirSync(paths.nginxHostDirPath); plugins.smartfile.memory.toFsSync(selfsignedCert.private, plugins.path.join(paths.nginxHostDirPath, './default.private.pem')); - plugins.smartfile.memory.toFsSync(selfsignedCert.public, plugins.path.join(paths.nginxHostDirPath, './default.public.pem')); + plugins.smartfile.memory.toFsSync(selfsignedCert.cert, plugins.path.join(paths.nginxHostDirPath, './default.public.pem')); for (const host of this.deployedHosts.getArray()) { await host.deploy(); this.logger.log('info', `Host ${host.hostName} deployed!`);