mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-02-16 21:40:45 +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
|
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
|
# .custom
|
||||||
if [ -f ~/.custom ]; then
|
if [ -f ~/.custom ]; then
|
||||||
source ~/.custom
|
source ~/.custom
|
||||||
|
7
rc/zshrc
7
rc/zshrc
@ -846,6 +846,13 @@ serversslcertfp() {
|
|||||||
rm $SSSLCFFN
|
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.
|
# Source files for miscannellious modifications.
|
||||||
|
|
||||||
# .custom
|
# .custom
|
||||||
|
Loading…
x
Reference in New Issue
Block a user