2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-05 07:23:42 +01:00

cipherscan - capture whole Signature Algorithm line

the GOST certificates have a signature algorithm name with spaces
This commit is contained in:
Hubert Kario 2015-05-29 20:34:48 +02:00
parent d151705218
commit 8ea6b57f9d

View File

@ -311,7 +311,12 @@ parse_openssl_output() {
while read data; do
if [[ $data =~ Signature\ Algorithm ]]; then
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
done <<<"$ossl_out"
fi