summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsigncsr.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/signcsr.sh b/signcsr.sh
index 157606c..8869148 100755
--- a/signcsr.sh
+++ b/signcsr.sh
@@ -30,8 +30,10 @@ mkdir -pv "$CA"/signed "$CA"/temp "$CA"/certs
SERIAL=$(cat "$CA"/ca/"$CA".serial)
if [[ "$1" =~ \.spkac$ ]]; then # SPKAC HTML5 <keygen> standard
+ openssl spkac -in "$1" # print key size
openssl ca -config "$OPENSSL_CONFIG" -spkac "$1" -notext
else # x509 CSR
+ openssl req -in "$1" -text # print key size
openssl ca -config "$OPENSSL_CONFIG" -in "$1"
fi