From a0479d1cff3e35a666ddf65d3726ec230733d7ce Mon Sep 17 00:00:00 2001 From: Matthew Ray Date: Tue, 12 May 2020 10:30:15 -0400 Subject: [PATCH] fix issue with cwg create --- src/commands/cwg_create.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/cwg_create.ts b/src/commands/cwg_create.ts index a54c3be..3bf37a1 100644 --- a/src/commands/cwg_create.ts +++ b/src/commands/cwg_create.ts @@ -71,6 +71,9 @@ export default class CWG_Create extends Command { if (!this.isValidPrivateKey(certAndPrivateKey[1])) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Invalid Private Key***`); certs = { cert: certAndPrivateKey[0], key: certAndPrivateKey[1] }; + } else { + certs.cert = await fs.readFile('/etc/ssl/private/cloud-libraryofcode-org.chain.crt', { encoding: 'utf8' }); + certs.key = await fs.readFile('/etc/ssl/private/cloud-libraryofcode-org.key', { encoding: 'utf8' }); } const domain = await this.createDomain(account, args[1], Number(args[2]), certs);