X-Git-Url: https://git.ralfj.de/lets-encrypt-tiny.git/blobdiff_plain/c5f541d513fe37747443aa23176611175f0cd440..2e3f15f335932f524c7a816d4eb0a1be9ac3f467:/gencsr.sh diff --git a/gencsr.sh b/gencsr.sh deleted file mode 100755 index a419359..0000000 --- a/gencsr.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -set -e -## ./gencsr.sh KEY.key DOMAIN1 DOMAIN2: Generate (to stdout) a CSR for this key, for all the domains listed later - -KEY="$1" -shift - -test -f "$KEY" || (echo "Usage: $0 KEY.key DOMAIN1 DOMAIN2"; exit 1) - -openssl req -new -sha256 -key "$1" -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) \ - )