Skip to content
Snippets Groups Projects
Commit 8f713cd8 authored by Jan Philipp Timme's avatar Jan Philipp Timme
Browse files

Ignore *.key.pem, too

parent 7091bb39
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ function process_folder { ...@@ -20,7 +20,7 @@ function process_folder {
fi fi
pemfiles=$(find "$folder" -type f -name '*.pem') pemfiles=$(find "$folder" -type f -name '*.pem')
for pemfile in $pemfiles; do for pemfile in $pemfiles; do
if [[ "$pemfile" =~ \.(dhparam|fullchain|chain|cacert)\.pem$ ]]; then if [[ "$pemfile" =~ \.(dhparam|fullchain|chain|cacert|key)\.pem$ ]]; then
continue; continue;
fi fi
pem_subject=$(openssl x509 -in "$pemfile" -noout -text 2>&1 | grep 'Subject:' | tr -s ' ' | cut -d ' ' -f 3-) pem_subject=$(openssl x509 -in "$pemfile" -noout -text 2>&1 | grep 'Subject:' | tr -s ' ' | cut -d ' ' -f 3-)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment