mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
rc: sslcertfp
gives local certificate file in MD5, SHA1 and SHA256, same as serversslcertfp.
This commit is contained in:
parent
68f059e025
commit
7ad43844ab
@ -868,6 +868,13 @@ serversslcertfp() {
|
||||
rm $SSSLCFFN
|
||||
}
|
||||
|
||||
# The same for local certificate file
|
||||
sslcertfp () {
|
||||
cat $1 | openssl x509 -md5 -fingerprint -noout
|
||||
cat $1 | openssl x509 -sha1 -fingerprint -noout
|
||||
cat $1 | openssl x509 -sha256 -fingerprint -noout
|
||||
}
|
||||
|
||||
# .custom
|
||||
if [ -f ~/.custom ]; then
|
||||
source ~/.custom
|
||||
|
7
rc/zshrc
7
rc/zshrc
@ -846,6 +846,13 @@ serversslcertfp() {
|
||||
rm $SSSLCFFN
|
||||
}
|
||||
|
||||
# The same for local certificate file
|
||||
sslcertfp () {
|
||||
cat $1 | openssl x509 -md5 -fingerprint -noout
|
||||
cat $1 | openssl x509 -sha1 -fingerprint -noout
|
||||
cat $1 | openssl x509 -sha256 -fingerprint -noout
|
||||
}
|
||||
|
||||
# Source files for miscannellious modifications.
|
||||
|
||||
# .custom
|
||||
|
Loading…
Reference in New Issue
Block a user