Merge pull request #420 from dcooper16/signed-signed-check

Fix check for self-signed certificate
This commit is contained in:
Dirk Wetter 2016-07-23 14:47:14 +02:00 committed by GitHub
commit 0c2acdd8fe
1 changed files with 1 additions and 1 deletions

View File

@ -4207,7 +4207,7 @@ certificate_info() {
issuer_C="$(awk -F'=' '/ C=/ { print $2 }' <<< "$issuer")"
issuer_DC="$(awk -F'=' '/DC=/ { print $2 }' <<< "$issuer")"
if [[ "$issuer_O" == "issuer=" ]] || [[ "$issuer_O" == "issuer= " ]] || [[ "$issuer_CN" == "$CN" ]]; then
if [[ "$issuer_O" == "issuer=" ]] || [[ "$issuer_O" == "issuer= " ]] || [[ "$issuer_CN" == "$cn" ]]; then
pr_svrty_criticalln "self-signed (NOT ok)"
fileout "${json_prefix}issuer" "NOT ok" "Issuer: selfsigned (NOT ok)"
else