From: Felix Dörre Date: Mon, 21 Dec 2015 13:40:06 +0000 (+0100) Subject: upd: verify new extensions X-Git-Url: https://code.wpia.club/?p=nre.git;a=commitdiff_plain;h=7d7c0a18fcd381890d944309d55246d42217c69f upd: verify new extensions --- 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: