From b2eaca582a9174759686f9b44d34f98b384b800e Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Thu, 20 Aug 2015 18:55:09 +0300 Subject: [PATCH] rc: fix serversslcertfp function Thanks @mgeedmin from Mikaela/mikaela.github.io#69 Other functions must still be checked probably. Closes #82 --- rc/bashrc | 8 ++++---- rc/zshrc | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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 }