diff --git a/internal/exporter.go b/internal/exporter.go index e917027..0289092 100644 --- a/internal/exporter.go +++ b/internal/exporter.go @@ -268,11 +268,13 @@ func (exporter *Exporter) collectMatchingPaths(pattern string, format certificat continue } } else { - if strings.HasSuffix(file.Name(), ".key") { - continue - } - - format = certificateFormatPEM + if strings.HasSuffix(file.Name(), ".crt") || + strings.HasSuffix(file.Name(), ".pem") || + strings.HasSuffix(file.Name(), ".cert") { + format = certificateFormatPEM + } else { + continue + } } output = append(output, &certificateRef{