Skip to content

Commit 529dad8

Browse files
muhammadnnpdgm
authored andcommitted
ignore private key files
1 parent 86e9a13 commit 529dad8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/exporter.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,11 @@ func (exporter *Exporter) collectMatchingPaths(pattern string, format certificat
268268
continue
269269
}
270270
} else {
271-
format = certificateFormatPEM
271+
if strings.HasSuffix(file.Name(), ".key") {
272+
continue
273+
}
274+
275+
format = certificateFormatPEM
272276
}
273277

274278
output = append(output, &certificateRef{

0 commit comments

Comments
 (0)