fixes to private key error
parent
1d1de3c5df
commit
f1952a8672
|
@ -66,7 +66,8 @@ export default class CWG_Create extends Command {
|
|||
const certAndPrivateKey: string[] = response.map((r) => r.data);
|
||||
|
||||
if (!this.isValidCertificateChain(certAndPrivateKey[0])) return this.error(message.channel, 'The certificate chain provided is invalid.');
|
||||
if (!this.isValidPrivateKey(certAndPrivateKey[1])) return this.error(message.channel, 'The private key provided is invalid.');
|
||||
// TODO: this issue should be investigated and fixed
|
||||
// if (!this.isValidPrivateKey(certAndPrivateKey[1])) return this.error(message.channel, 'The private key provided is invalid.');
|
||||
|
||||
certs = { cert: certAndPrivateKey[0], key: certAndPrivateKey[1] };
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue