complete openssl_check_cert
This commit is contained in:
parent
66ba2ad745
commit
0f5fc9c5ed
4
.bashrc
4
.bashrc
|
|
@ -286,8 +286,8 @@ function openssl_check_csr {
|
||||||
# check certificate file
|
# check certificate file
|
||||||
function openssl_check_cert {
|
function openssl_check_cert {
|
||||||
test -f "$1" || { echo "Usage: $(basename "$0") <cert_file>"; return 1; }
|
test -f "$1" || { echo "Usage: $(basename "$0") <cert_file>"; return 1; }
|
||||||
faint "# openssl x509 -noout -dates -in $1"
|
faint "# openssl x509 -noout -dates -subject -issuer -in $1"
|
||||||
openssl x509 -noout -dates -in "$1"
|
openssl x509 -noout -dates -subject -issuer -in "$1"
|
||||||
faint "# openssl x509 -noout -modulus -in $1 | openssl md5"
|
faint "# openssl x509 -noout -modulus -in $1 | openssl md5"
|
||||||
openssl x509 -noout -modulus -in "$1" | openssl md5
|
openssl x509 -noout -modulus -in "$1" | openssl md5
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue