complete openssl_check_cert

This commit is contained in:
masterzu 2025-09-03 17:14:30 +02:00
parent 66ba2ad745
commit 0f5fc9c5ed
No known key found for this signature in database
GPG Key ID: 7493CA6D56F2D2F7
1 changed files with 2 additions and 2 deletions

View File

@ -286,8 +286,8 @@ function openssl_check_csr {
# check certificate file
function openssl_check_cert {
test -f "$1" || { echo "Usage: $(basename "$0") <cert_file>"; return 1; }
faint "# openssl x509 -noout -dates -in $1"
openssl x509 -noout -dates -in "$1"
faint "# openssl x509 -noout -dates -subject -issuer -in $1"
openssl x509 -noout -dates -subject -issuer -in "$1"
faint "# openssl x509 -noout -modulus -in $1 | openssl md5"
openssl x509 -noout -modulus -in "$1" | openssl md5
}