diff options
author | Simon Rettberg | 2021-03-10 14:14:33 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-03-10 14:14:33 +0100 |
commit | 2f67ff35f5b4ee2843b37978978a96852451d108 (patch) | |
tree | b3f4075eb42cad01ea3c444696a6c154654828a3 | |
parent | Remember if we were sourced and don't do it again (diff) | |
download | slx-tools-2f67ff35f5b4ee2843b37978978a96852451d108.tar.gz slx-tools-2f67ff35f5b4ee2843b37978978a96852451d108.tar.xz slx-tools-2f67ff35f5b4ee2843b37978978a96852451d108.zip |
[cert] Only import hashed symlink certs into nssdb
This makes sure we don't import duplicates, or the cert bundle etc.
-rw-r--r-- | modules/cert.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cert.inc b/modules/cert.inc index 3b4a222..23aeacd 100644 --- a/modules/cert.inc +++ b/modules/cert.inc @@ -17,7 +17,7 @@ cert_to_nssdb() { return # pass exit code fi if [ -d "$src" ]; then - find "$src" \( -type f -o -type l \) -name "*.pem" | while read -r file; do + find "$src" -type l -name "*.?" | while read -r file; do file="$( readlink -f "$file" )" # Make sure there's nothing after this call so the exit code survives the loop end certutil -A -d sql:"$db" -n "$( basename "$file" )" -t C,C,C -i "$file" |