mirror of
https://github.com/mozilla/cipherscan.git
synced 2026-02-05 22:55:15 +01:00
cipherscan - capture whole Signature Algorithm line
the GOST certificates have a signature algorithm name with spaces
This commit is contained in:
@@ -311,7 +311,12 @@ parse_openssl_output() {
|
|||||||
while read data; do
|
while read data; do
|
||||||
if [[ $data =~ Signature\ Algorithm ]]; then
|
if [[ $data =~ Signature\ Algorithm ]]; then
|
||||||
local match=($data)
|
local match=($data)
|
||||||
current_sigalg="${match[2]}"
|
unset match[0]
|
||||||
|
unset match[1]
|
||||||
|
local old_IFS="$IFS"
|
||||||
|
IFS="_"
|
||||||
|
current_sigalg="${match[*]}"
|
||||||
|
IFS="$old_IFS"
|
||||||
fi
|
fi
|
||||||
done <<<"$ossl_out"
|
done <<<"$ossl_out"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user