From 34d2e1c7c12db37a093ac1331f58a1818b195bdb Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Fri, 16 Nov 2018 16:19:12 -0800 Subject: signcsr: Autodetect SPKAC by content --- signcsr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'signcsr.sh') diff --git a/signcsr.sh b/signcsr.sh index 98392bd..f9fd01d 100755 --- a/signcsr.sh +++ b/signcsr.sh @@ -29,7 +29,7 @@ fi mkdir -pv "$CA"/signed "$CA"/temp "$CA"/certs SERIAL=$(cat "$CA"/ca/"$CA".serial) -if [[ "$1" =~ \.spkac$ ]]; then # SPKAC HTML5 standard +if grep ^SPKAC "$1"; then # SPKAC HTML5 standard openssl spkac -in "$1" # print key size openssl ca -config "$OPENSSL_CONFIG" -spkac "$1" -notext else # x509 CSR -- cgit v1.2.3