Commit 325534f0 authored by Mika Havela's avatar Mika Havela Committed by Natanael Copa
Browse files

Bugfix: If hostname -f does not work, then ssl creation will break and acf won't work

FQDN hostname might not be set in /etc/hosts and this could cause 'hostname -f' to fail. Even this does not happen too often, it still is a possibility. This patch prevents the problem.
parent beb3a3f8
......@@ -75,7 +75,7 @@ prompt = no
[ req_dn ]
OU=HTTPS server
CN=$(hostname -f)
CN=$(hostname -f || hostname)
[ cert_type ]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment