From 15c5bcfff8f53686cb9d382bdf000d282f3d70a9 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 13 Dec 2015 10:24:16 +0100 Subject: [PATCH 1/1] gencsr: fix openSSL key file name --- gencsr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \ -- 2.30.2