summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup-acf.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup-acf.in b/setup-acf.in
index 92d769c..0b45be5 100644
--- a/setup-acf.in
+++ b/setup-acf.in
@@ -73,8 +73,8 @@ prompt = no
[ req_dn ]
OU=HTTPS server
-CN=$(hostname)
-emailAddress=postmaster@example.com
+CN=$(hostname -f)
+emailAddress=${EMAIL:-postmaster@example.com}
[ cert_type ]
nsCertType = server