]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Using empty passphrases for genpair_ssh
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 10 Apr 2013 15:50:14 +0000 (12:50 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 10 Apr 2013 15:50:14 +0000 (12:50 -0300)
share/keyringer/genpair

index a1a122ef375295fff5e368b36312068cbe5e96da..71ae86d60721703a66901959fe046e7219c856da 100755 (executable)
@@ -11,8 +11,8 @@ function genpair_ssh {
   echo "Make sure that $KEYDIR is atop of an encrypted volume."
   read -p "Hit ENTER to continue." prompt
 
-  # TODO: programatically enter blank passphrase twice
-  ssh-keygen -t rsa -f "$TMPWORK/id_rsa" -C "root@$NODE"
+  # We're using empty passphrases
+  ssh-keygen -t rsa -P '' -f "$TMPWORK/id_rsa" -C "root@$NODE"
 
   # Encrypt the result
   echo "Encrypting secret key into keyringer..."