From b0c63a43857b80963b6b634c2f4170b3dfa5af53 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 1 Jun 2021 02:04:27 +0200 Subject: [PATCH] get_all_keys.sh: fix error determin active keys. --- get_all_keys.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_all_keys.sh b/get_all_keys.sh index 874b8ea..945ba76 100755 --- a/get_all_keys.sh +++ b/get_all_keys.sh @@ -277,7 +277,7 @@ else _cn="$(openssl x509 -noout -text -in $_cert | grep Subject: | grep -oE "CN\s*=\s*[^,]+" | awk '{print$3}')" all_arr+=("${_serial}:$(trim $_cn)") - if ! containsElement "$_cn" "${revoked_cn_arr[@]}" ; then + if ! containsElement "${_serial}:$(trim $_cn)" "${revoked_arr[@]}" ; then active_arr+=("${_serial}:$(trim $_cn)") fi done < <(find ${OPENVPN_KEY_DIR} -name "??\.pem" -print0 | sort -z )