Add the --fqdn flag to hostname for generating keys
[shibboleth/sp.git] / 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