Quote the argument of echo to make it work with bash

This commit is contained in:
Marius Gedminas 2015-08-10 14:43:38 +03:00
parent 0973f2b6a8
commit 5c279ca0c9
1 changed files with 4 additions and 4 deletions

View File

@ -70,11 +70,11 @@ from multiple places:
serversslcertfp () {
SSSLCFFN=$(openssl s_client -showcerts -connect $1 < /dev/null)
# To see all validity information
echo $SSSLCFFN
echo "$SSSLCFFN"
# For getting the fingerprints
echo $SSSLCFFN | openssl x509 -md5 -fingerprint -noout
echo $SSSLCFFN | openssl x509 -sha1 -fingerprint -noout
echo $SSSLCFFN | openssl x509 -sha256 -fingerprint -noout
echo "$SSSLCFFN" | openssl x509 -md5 -fingerprint -noout
echo "$SSSLCFFN" | openssl x509 -sha1 -fingerprint -noout
echo "$SSSLCFFN" | openssl x509 -sha256 -fingerprint -noout
unset SSSLCFFN
}
```