From 8ea6b57f9de88e12f22860c6d85a15e72b994625 Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Fri, 29 May 2015 20:34:48 +0200 Subject: [PATCH] cipherscan - capture whole Signature Algorithm line the GOST certificates have a signature algorithm name with spaces --- cipherscan | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cipherscan b/cipherscan index c927f18..4183fe9 100755 --- a/cipherscan +++ b/cipherscan @@ -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