Add the --fqdn flag to hostname for generating keys
authorRuss Allbery <rra@debian.org>
Wed, 25 Jun 2008 23:36:04 +0000 (16:36 -0700)
committerSam Hartman <hartmans@debian.org>
Mon, 1 Nov 2010 00:01:07 +0000 (20:01 -0400)
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.

configs/keygen.sh

index 4ee69f6..9183e10 100755 (executable)
@@ -33,7 +33,7 @@ if  [ -s $OUT/sp-key.pem -o -s $OUT/sp-cert.pem ] ; then
 fi
 
 if [ -z "$FQDN" ] ; then
-    FQDN=`hostname`
+    FQDN=`hostname --fqdn`
 fi
 
 if [ -z "$YEARS" ] ; then