diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-11-21 18:11:56 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-11-21 18:11:56 -0200 |
commit | cd7ab4a045ef7c9762e4910e75e467f9c4954ae1 (patch) | |
tree | 02928aa1ad256b7420f5bdac5507e73d3a859e36 | |
parent | ade1914133edc3c6e51eff8e74eae463f57eb136 (diff) | |
download | keyringer-cd7ab4a045ef7c9762e4910e75e467f9c4954ae1.tar.gz keyringer-cd7ab4a045ef7c9762e4910e75e467f9c4954ae1.tar.bz2 |
Switching from DSA to RSA SSH keys
-rwxr-xr-x | share/keyringer/genpair | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/share/keyringer/genpair b/share/keyringer/genpair index 63a5bc6..df59ea5 100755 --- a/share/keyringer/genpair +++ b/share/keyringer/genpair @@ -12,20 +12,20 @@ function genpair_ssh { read -p "Hit ENTER to continue." prompt # TODO: programatically enter blank passphrase twice - ssh-keygen -t dsa -f "$TMPWORK/id_dsa" -C "root@$NODE" + ssh-keygen -t rsa -f "$TMPWORK/id_rsa" -C "root@$NODE" # Encrypt the result echo "Encrypting secret key into keyringer..." - cat "$TMPWORK/id_dsa" | keyringer_exec encrypt "$BASEDIR" "$FILE" + cat "$TMPWORK/id_rsa" | keyringer_exec encrypt "$BASEDIR" "$FILE" echo "Encrypting public key into keyringer..." - cat "$TMPWORK/id_dsa.pub" | keyringer_exec encrypt "$BASEDIR" "$FILE.pub" + cat "$TMPWORK/id_rsa.pub" | keyringer_exec encrypt "$BASEDIR" "$FILE.pub" # TODO: add outfiles into version control if [ ! -z "$OUTFILE" ]; then mkdir -p `dirname $OUTFILE` printf "Saving copies at %s and %s.pub\n" "$OUTFILE" "$OUTFILE" - cat "$TMPWORK/id_dsa" > "$OUTFILE" - cat "$TMPWORK/id_dsa.pub" > "$OUTFILE.pub" + cat "$TMPWORK/id_rsa" > "$OUTFILE" + cat "$TMPWORK/id_rsa.pub" > "$OUTFILE.pub" fi echo "Done" |