From f4792d1b49f232a520cacdd1cc72e56ae9779401 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 12 Feb 2024 13:45:26 +0100 Subject: [PATCH] fix(cli): remove certificate file extension check on copy (#7240) --- cli/src/tasks/copy.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cli/src/tasks/copy.ts b/cli/src/tasks/copy.ts index d84126716..09c6a49fd 100644 --- a/cli/src/tasks/copy.ts +++ b/cli/src/tasks/copy.ts @@ -324,14 +324,6 @@ async function copySSLCert( const validCertPaths: string[] = []; for (const sslCertPath of sslCertPaths) { const certAbsFromPath = join(rootDir, sslCertPath); - if (!/^.+\.(cer)$/.test(certAbsFromPath)) { - logger.warn( - `Cannot copy file from ${c.strong(certAbsFromPath)}\n` + - `The file is not a .cer SSL Certificate file.`, - ); - - return; - } if (!(await pathExists(certAbsFromPath))) { logger.warn( `Cannot copy SSL Certificate file from ${c.strong(certAbsFromPath)}\n` +