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);