get_all_keys.sh: some minor changes.

This commit is contained in:
2026-02-03 18:14:16 +01:00
parent b9ffc32ee7
commit 4c74e65133

View File

@@ -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