get_all_keys.sh: some minor changes.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user