Browse Source

remove extra space in $sig_algo

master
nervuri 4 months ago
parent
commit
6a6e8ae643
Signed by: nervuri GPG Key ID: C4769EEA7BA61672
  1. 4
      cert-details.sh

4
cert-details.sh

@ -44,10 +44,10 @@ for cert_file in certs/*.pem; do
key_size=$(expr "$key_size" : '^..\([0-9]*\).*$')
fi
sig_algo=$(echo "$cert_details" | grep ' Signature Algorithm:' | cut -d ':' -f 2)
sig_algo=$(echo "$cert_details" | grep ' Signature Algorithm:' | cut -d ':' -f 2 | cut -c2-)
# Add a table row.
md_table="$md_table| [$host](gemini://$host/) | [PEM]($cert_file) | $end_date | $key_algo | $key_size |$sig_algo |\n"
md_table="$md_table| [$host](gemini://$host/) | [PEM]($cert_file) | $end_date | $key_algo | $key_size | $sig_algo |\n"
csv_table="$csv_table""$host,$end_date,$key_algo,$key_size,$sig_algo\n"
done

Loading…
Cancel
Save