summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setup-acf.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-acf.in b/setup-acf.in
index 4f2afec..c6f621e 100644
--- a/setup-acf.in
+++ b/setup-acf.in
@@ -75,7 +75,7 @@ prompt = no
[ req_dn ]
OU=HTTPS server
-CN=$(hostname -f)
+CN=$(hostname -f || hostname)
emailAddress=${EMAIL:-postmaster@example.com}
[ cert_type ]