rc: sslcertfp

gives local certificate file in MD5, SHA1 and SHA256, same as
serversslcertfp.
This commit is contained in:
Aminda Suomalainen 2015-02-03 09:14:26 +02:00
parent 68f059e025
commit 7ad43844ab
2 changed files with 14 additions and 0 deletions

View File

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

View File

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