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)
committerRuss Allbery <rra@debian.org>
Wed, 25 Jun 2008 23:36:04 +0000 (16:36 -0700)
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 aa47b68..5bb67db 100755 (executable)
@@ -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