From 7d7c0a18fcd381890d944309d55246d42217c69f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Mon, 21 Dec 2015 14:40:06 +0100 Subject: [PATCH] upd: verify new extensions --- verify.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/verify.sh b/verify.sh index c689eec..25efbdd 100755 --- a/verify.sh +++ b/verify.sh @@ -20,9 +20,15 @@ error() { # message verifyExtlist() { # ext EXTLIST=`echo "$1" | grep "X509v3\|Authority Information" | sed "s/^[ \t]*//"` + BASIC=$2 + if [[ $BASIC == "" ]]; then + BASIC="critical" + else + BASIC="critical, $BASIC" + fi VAR="X509v3 extensions: -X509v3 Basic Constraints: $2 -X509v3 Key Usage: +X509v3 Basic Constraints: $BASIC +X509v3 Key Usage: critical ${3}X509v3 Subject Key Identifier: X509v3 Authority Key Identifier: X509v3 CRL Distribution Points: -- 2.39.2