aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDennis Eriksen <dennis@eriksen.im>2016-01-20 14:57:56 +0100
committerDennis Eriksen <dennis@eriksen.im>2016-01-20 14:57:56 +0100
commit68a19047c6d914d54f70acbbc0b51048941950c0 (patch)
tree49999523144ee7de9e00ae4121ee6256dc59e105
parentsome privileges, perhaps (diff)
downloadlets-ca.sh-68a19047c6d914d54f70acbbc0b51048941950c0.tar.gz
adding SAN-file with all domains from SAN-certs
-rwxr-xr-xlets-ca.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/lets-ca.sh b/lets-ca.sh
index 30ba356..60c89d0 100755
--- a/lets-ca.sh
+++ b/lets-ca.sh
@@ -269,7 +269,8 @@ req() {
for SAN in "${domain[@]}"; do
- echo "$SAN"
+ # Echo both to stdout and to SAN-file in cert-dir.
+ echo "$SAN" | tee -a "$CERTDIR/${domain[0]}/SAN"
if [[ ! "$SAN" == "${domain[0]}" ]]; then
((i+=1)) && [[ $i > 1 ]] && SANtext+=","