]> WPIA git - nre.git/commitdiff
upd: verify new extensions
authorFelix Dörre <felix@dogcraft.de>
Mon, 21 Dec 2015 13:40:06 +0000 (14:40 +0100)
committerFelix Dörre <felix@dogcraft.de>
Mon, 21 Dec 2015 13:40:50 +0000 (14:40 +0100)
verify.sh

index c689eec9db51c832cc473e44f3124a8f9e933bb8..25efbddeda7dfc5ff4b0314ab15631155dabc248 100755 (executable)
--- 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: