From f1952a8672166ec7d34c6a84b1247d4edabf8b63 Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 12 Feb 2025 10:46:46 -0500 Subject: [PATCH] fixes to private key error --- src/commands/cwg_create.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/cwg_create.ts b/src/commands/cwg_create.ts index 54ed5ea..85c2e4d 100644 --- a/src/commands/cwg_create.ts +++ b/src/commands/cwg_create.ts @@ -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 {