summaryrefslogtreecommitdiff
path: root/signcsr.sh
diff options
context:
space:
mode:
authorU-Z690-A\user <jrayhawk@omgwallhack.org>2022-06-29 20:26:01 -0700
committerU-Z690-A\user <jrayhawk@omgwallhack.org>2022-06-29 20:26:01 -0700
commit585568aa8b851d153fbec0a46769b8f12e1df7f4 (patch)
treefc4d8daee10acdd48f33de0221a4dd31773f5289 /signcsr.sh
parent40e0db376ea51384fc2dbb7feb86d6d83408fe9f (diff)
downloadcash-585568aa8b851d153fbec0a46769b8f12e1df7f4.tar.gz
cash-585568aa8b851d153fbec0a46769b8f12e1df7f4.zip
extendedKeyUsage: decommission ekusub.sh and use environment variables insteadHEADmaster
ekusub.sh has additionally been generalized into inimodify.sh in case I ever need it in the future for anything else.
Diffstat (limited to 'signcsr.sh')
-rwxr-xr-xsigncsr.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/signcsr.sh b/signcsr.sh
index 910d8d9..0536411 100755
--- a/signcsr.sh
+++ b/signcsr.sh
@@ -32,7 +32,7 @@ SERIAL=$(cat "$CA"/ca/"$CA".serial)
if grep ^SPKAC "$1"; then # SPKAC HTML5 <keygen> standard
[ -n $EKU ] || EKU="clientAuth" # I don't think servers do SPKACs
openssl spkac -in "$1" # print key size
- openssl ca -config <( ./ekusub.sh "$EKU" < $OPENSSL_CONFIG ) -spkac "$1" -notext
+ openssl ca -config $OPENSSL_CONFIG -spkac "$1" -notext
else # x509 CSR
if ! [ -n "$EKU" ]; then
[[ "$( openssl req -in $1 -subject -nameopt multiline | grep -E '^ +commonName += ' | head -n 1 )" =~ ^\ +commonName\ +=\ (.+)$ ]]
@@ -48,7 +48,7 @@ else # x509 CSR
fi
fi
openssl req -in "$1" -text # print key size
- openssl ca -config <( ./ekusub.sh "$EKU" < "$OPENSSL_CONFIG" ) -in "$1" -notext
+ openssl ca -config "$OPENSSL_CONFIG" -in "$1" -notext
fi
if [ -e "$CA"/certs/"$SERIAL".pem ]; then # openssl lacks useful exit status codes, so we check to see if it actually did anything instead.