1
0
Fork 0

fix issue with cwg create

refactor/models
Matthew 2020-05-12 10:30:15 -04:00
parent 88198b2234
commit a0479d1cff
No known key found for this signature in database
GPG Key ID: D499B75C1390E321
1 changed files with 3 additions and 0 deletions

View File

@ -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***`); if (!this.isValidPrivateKey(certAndPrivateKey[1])) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Invalid Private Key***`);
certs = { cert: certAndPrivateKey[0], key: certAndPrivateKey[1] }; 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); const domain = await this.createDomain(account, args[1], Number(args[2]), certs);