Skip to content

Commit 4650b4f

Browse files
authored
fix(cli): remove certificate file extension check on copy (#7240) (#7243)
1 parent e1a358d commit 4650b4f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cli/src/tasks/copy.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -324,14 +324,6 @@ async function copySSLCert(
324324
const validCertPaths: string[] = [];
325325
for (const sslCertPath of sslCertPaths) {
326326
const certAbsFromPath = join(rootDir, sslCertPath);
327-
if (!/^.+\.(cer)$/.test(certAbsFromPath)) {
328-
logger.warn(
329-
`Cannot copy file from ${c.strong(certAbsFromPath)}\n` +
330-
`The file is not a .cer SSL Certificate file.`,
331-
);
332-
333-
return;
334-
}
335327
if (!(await pathExists(certAbsFromPath))) {
336328
logger.warn(
337329
`Cannot copy SSL Certificate file from ${c.strong(certAbsFromPath)}\n` +

0 commit comments

Comments
 (0)