X-Git-Url: https://git.ralfj.de/lets-encrypt-tiny.git/blobdiff_plain/2e3f15f335932f524c7a816d4eb0a1be9ac3f467..53d17049bb85096d7f640ca1c8960f3dc6362fc9:/gencsr?ds=inline diff --git a/gencsr b/gencsr index 2e33a6a..d4d17c6 100755 --- a/gencsr +++ b/gencsr @@ -9,7 +9,7 @@ shift test -f "$KEY" || (echo "Usage: $0 KEY.key DOMAIN1 DOMAIN2"; exit 1) -openssl req -new -sha256 -key "$1" -subj "/" -reqexts SAN \ +openssl req -new -sha256 -key "$KEY" -subj "/" -reqexts SAN \ -config <(cat /etc/ssl/openssl.cnf \ <(echo "[SAN]"; echo -n "subjectAltName="; unset COMMA; \ for domain in "$@"; do test -n "$COMMA" && echo -n ","; echo -n "DNS:$domain"; COMMA=1; done; echo) \