1
0
mirror of https://github.com/drwetter/testssl.sh.git synced 2025-04-14 05:26:06 +02:00

Merge pull request 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

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