From 4c74e651330a6a368d1f9c6e7cce637da399b1fc Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 3 Feb 2026 18:14:16 +0100 Subject: [PATCH] get_all_keys.sh: some minor changes. --- get_all_keys.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get_all_keys.sh b/get_all_keys.sh index 80e3edd..9365a57 100755 --- a/get_all_keys.sh +++ b/get_all_keys.sh @@ -306,11 +306,11 @@ if $EASYRSA_LAYOUT_NEW ; then _cn="$(openssl x509 -noout -text -in $_cert | grep Subject: | grep -oE "CN\s*=\s*[^,]+" | awk '{print$3}')" fi - if ! containsElement "$_cn" "${all_cn_arr[@]}" ; then + if ! containsElement "$_serial" "${all_cn_arr[@]}" ; then all_arr+=("${_serial}:$(trim $_cn)") all_cn_arr+=("$(trim $_cn)") fi - if ! containsElement "$_cn" "${revoked_cn_arr[@]}" ; then + if ! containsElement "$_serial" "${revoked_cn_arr[@]}" ; then active_arr+=("${_serial}:$(trim $_cn)") fi