Skip to content

Commit

Permalink
fix(cli): remove certificate file extension check on copy (#7240)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Feb 12, 2024
1 parent a989c4d commit 93a0044
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 @@ -323,14 +323,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 93a0044

Please sign in to comment.