match issuer ignoring case

This commit is contained in:
neil 2020-08-27 21:41:18 +08:00
parent 8d0e485120
commit fdb96e91f1

View File

@ -4006,6 +4006,11 @@ _match_issuer() {
_missuer="$2" _missuer="$2"
_fissuers="$(_get_cert_issuers $_cfile)" _fissuers="$(_get_cert_issuers $_cfile)"
_debug2 _fissuers "$_fissuers" _debug2 _fissuers "$_fissuers"
if _contains "$_fissuers" "$_missuer"; then
return 0
fi
_fissuers="$(echo "$_fissuers" | _lower_case)"
_missuer="$(echo "$_missuer" | _lower_case)"
_contains "$_fissuers" "$_missuer" _contains "$_fissuers" "$_missuer"
} }