rc: fix serversslcertfp function

Thanks @mgeedmin from Mikaela/mikaela.github.io#69

Other functions must still be checked probably.

Closes #82
This commit is contained in:
Aminda Suomalainen 2015-08-20 18:55:09 +03:00
parent a06465d161
commit b2eaca582a
2 changed files with 8 additions and 8 deletions

View File

@ -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
}

View File

@ -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
}