diff --git a/rc/bashrc b/rc/bashrc index ccc983fd..8b30cf63 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -864,11 +864,11 @@ github-add-pulls() { 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 } diff --git a/rc/zshrc b/rc/zshrc index ddbf4434..6a82f2f4 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -854,11 +854,11 @@ github-add-pulls() { 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 }