fixes to private key error

master
Matthew 2025-02-12 10:46:46 -05:00
parent 1d1de3c5df
commit f1952a8672
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
1 changed files with 2 additions and 1 deletions

View File

@ -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 {