mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 19:29:22 +01:00
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:
parent
a06465d161
commit
b2eaca582a
@ -864,11 +864,11 @@ github-add-pulls() {
|
|||||||
serversslcertfp () {
|
serversslcertfp () {
|
||||||
SSSLCFFN=$(openssl s_client -showcerts -connect $1 < /dev/null)
|
SSSLCFFN=$(openssl s_client -showcerts -connect $1 < /dev/null)
|
||||||
# To see all validity information
|
# To see all validity information
|
||||||
echo $SSSLCFFN
|
echo "$SSSLCFFN"
|
||||||
# For getting the fingerprints
|
# For getting the fingerprints
|
||||||
echo $SSSLCFFN | openssl x509 -md5 -fingerprint -noout
|
echo "$SSSLCFFN" | openssl x509 -md5 -fingerprint -noout
|
||||||
echo $SSSLCFFN | openssl x509 -sha1 -fingerprint -noout
|
echo "$SSSLCFFN" | openssl x509 -sha1 -fingerprint -noout
|
||||||
echo $SSSLCFFN | openssl x509 -sha256 -fingerprint -noout
|
echo "$SSSLCFFN" | openssl x509 -sha256 -fingerprint -noout
|
||||||
unset SSSLCFFN
|
unset SSSLCFFN
|
||||||
}
|
}
|
||||||
|
|
||||||
|
8
rc/zshrc
8
rc/zshrc
@ -854,11 +854,11 @@ github-add-pulls() {
|
|||||||
serversslcertfp () {
|
serversslcertfp () {
|
||||||
SSSLCFFN=$(openssl s_client -showcerts -connect $1 < /dev/null)
|
SSSLCFFN=$(openssl s_client -showcerts -connect $1 < /dev/null)
|
||||||
# To see all validity information
|
# To see all validity information
|
||||||
echo $SSSLCFFN
|
echo "$SSSLCFFN"
|
||||||
# For getting the fingerprints
|
# For getting the fingerprints
|
||||||
echo $SSSLCFFN | openssl x509 -md5 -fingerprint -noout
|
echo "$SSSLCFFN" | openssl x509 -md5 -fingerprint -noout
|
||||||
echo $SSSLCFFN | openssl x509 -sha1 -fingerprint -noout
|
echo "$SSSLCFFN" | openssl x509 -sha1 -fingerprint -noout
|
||||||
echo $SSSLCFFN | openssl x509 -sha256 -fingerprint -noout
|
echo "$SSSLCFFN" | openssl x509 -sha256 -fingerprint -noout
|
||||||
unset SSSLCFFN
|
unset SSSLCFFN
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user