~alpine/devel

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

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

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/devel/patches/261/mbox | git am -3
Learn more about email & git

[alpine-devel] [PATCH] Bugfix: If hostname -f does not work, then ssl creation will break and acf won't work Export this patch

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.
---
 setup-acf.in |    2 +-
 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 ]
-- 
1.7.0.4



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---