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