mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-01-03 16:52:37 +01:00
rc: *sslcertfp: also check sha512 sum
This commit is contained in:
parent
f1ad46eea5
commit
e86ceeccb6
@ -872,6 +872,7 @@ SSSLCFFN=$(openssl s_client -showcerts -connect $1 < /dev/null)
|
||||
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 -sha512 -fingerprint -noout
|
||||
unset SSSLCFFN
|
||||
}
|
||||
|
||||
@ -880,6 +881,7 @@ sslcertfp () {
|
||||
cat $1 | openssl x509 -md5 -fingerprint -noout
|
||||
cat $1 | openssl x509 -sha1 -fingerprint -noout
|
||||
cat $1 | openssl x509 -sha256 -fingerprint -noout
|
||||
cat $1 | openssl x509 -sha512 -fingerprint -noou
|
||||
}
|
||||
|
||||
# Usage: serversslciphers hostname port
|
||||
|
2
rc/zshrc
2
rc/zshrc
@ -880,6 +880,7 @@ serversslcertfp () {
|
||||
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 -sha512 -fingerprint -noou
|
||||
unset SSSLCFFN
|
||||
}
|
||||
|
||||
@ -888,6 +889,7 @@ sslcertfp () {
|
||||
cat $1 | openssl x509 -md5 -fingerprint -noout
|
||||
cat $1 | openssl x509 -sha1 -fingerprint -noout
|
||||
cat $1 | openssl x509 -sha256 -fingerprint -noout
|
||||
cat $1 | openssl x509 -sha512 -fingerprint -noou
|
||||
}
|
||||
|
||||
# Usage: serversslciphers hostname port
|
||||
|
Loading…
Reference in New Issue
Block a user