Skip to content

Commit

Permalink
fix(cli): remove certificate file extension check on copy (#7240) (#7243
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jcesarmobile authored Feb 12, 2024
1 parent e1a358d commit 4650b4f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cli/src/tasks/copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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` +
Expand Down

0 comments on commit 4650b4f

Please sign in to comment.