From: Russ Allbery Date: Wed, 25 Jun 2008 23:36:04 +0000 (-0700) Subject: Add the --fqdn flag to hostname for generating keys X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=4707846c9815a40cbc5245b482c100432d0abfb7;p=shibboleth%2Fsp.git Add the --fqdn flag to hostname for generating keys This is Debian-specific (or at least specific to systems with a hostname that support this flag), but will produce more reliable names for an SSL certificate. --- diff --git a/configs/keygen.sh b/configs/keygen.sh index aa47b68..5bb67db 100755 --- a/configs/keygen.sh +++ b/configs/keygen.sh @@ -27,7 +27,7 @@ if [ -s sp-key.pem -o -s sp-cert.pem ] ; then fi if [ -z "$FQDN" ] ; then - FQDN=`hostname` + FQDN=`hostname --fqdn` fi if [ -z "$YEARS" ] ; then