From: Mark Wooding Date: Sat, 19 Jul 2014 17:12:02 +0000 (+0100) Subject: bin/sign: Keep track of the original domain, for `known_hosts' banners. X-Git-Url: https://git.distorted.org.uk/~mdw/ssh-ca/commitdiff_plain/83e706f99b9b9125fe8b2268ecc305526b481d60 bin/sign: Keep track of the original domain, for `known_hosts' banners. --- diff --git a/bin/sign b/bin/sign index f275355..7c84ae6 100755 --- a/bin/sign +++ b/bin/sign @@ -26,7 +26,8 @@ done ## Sign the various host keys. last=%%% -echo >&5 "### BEGIN $domain KEYS (generated $date)" +idomain=$domain +echo >&5 "### BEGIN $idomain KEYS (generated $date)" while read line <&3; do ## Ignore comments and empty lines. @@ -78,7 +79,7 @@ while read line <&3; do ssh-keygen -lv -fhost/$host-$kt.pub | sed 's,^,| ,' >&4 done done -echo >&5 "### END $domain KEYS" +echo >&5 "### END $idomain KEYS" exec 3>&- 4>&- 5>&- ## Sign the list.