move around args.

This commit is contained in:
2024-09-29 14:27:21 +00:00
parent 9838020d16
commit ce35031744

View File

@@ -2,6 +2,7 @@
RSA_OPTS="-newkey rsa:2048 -sha256" RSA_OPTS="-newkey rsa:2048 -sha256"
ECDSA_OPTS="-newkey ec -pkeyopt ec_paramgen_curve:secp384r1 -sha384" ECDSA_OPTS="-newkey ec -pkeyopt ec_paramgen_curve:secp384r1 -sha384"
while getopts ":h:t:n:d:s:" opt; do while getopts ":h:t:n:d:s:" opt; do
case $opt in case $opt in
@@ -35,7 +36,7 @@ while getopts ":h:t:n:d:s:" opt; do
esac esac
done done
openssl req -x509 -batch $NEWKEY_OPT "${NAME_OPT[@]}" $DAYS_OPT "${SUBJECT_OPT[@]}" \ openssl req -x509 -batch $NEWKEY_OPT $DAYS_OPT "${NAME_OPT[@]}" "${SUBJECT_OPT[@]}" \
-addext "subjectKeyIdentifier=hash" \ -addext "subjectKeyIdentifier=hash" \
-addext "authorityKeyIdentifier=keyid:always,issuer" \ -addext "authorityKeyIdentifier=keyid:always,issuer" \
-addext "basicConstraints=critical,CA:true" \ -addext "basicConstraints=critical,CA:true" \