git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Pfeiffer <coding _ lirion.de> 2020-07-30 11:47:03 +0200
committerHarald Pfeiffer <coding _ lirion.de> 2020-07-30 11:47:03 +0200
commit63e03ae75afd7abbb54de6e02e2f1d01e831f100 (patch)
tree4d2ee46203088d3a9883942ef73eb33144af49e6
parent2d5d144e118c77ea8861fcb0486d68e63f98fd74 (diff)
downloadlinux-scripts-63e03ae75afd7abbb54de6e02e2f1d01e831f100.tar.bz2
identify issuer_hash in output
-rwxr-xr-xbin/sslcheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sslcheck b/bin/sslcheck
index 1cf13aa..ac3027b 100755
--- a/bin/sslcheck
+++ b/bin/sslcheck
@@ -85,4 +85,4 @@ if ! nc -zw3 "$TGTURL" "$TGTPORT"; then
fi
echo '' | "${sslbin}" s_client -connect "$TGTURL":"$TGTPORT" "${sslinitparms[@]}" 2>&1 |\
sed -n '/---BEGIN CERT/,/---END CERT/p' |\
- "${sslbin}" "${sslshowparms[@]}"|tr -s '\n'
+ "${sslbin}" "${sslshowparms[@]}"|tr -s '\n'|sed 's/^\([0-9a-f]\{8\}\)$/issuerHash=\1/'