From 9111037ff59e8ddb29ced270ad0821c0c0b1e036 Mon Sep 17 00:00:00 2001 From: elijah Date: Sun, 30 Nov 2014 23:36:28 -0800 Subject: fix monitor key problems: was erased with a `leap node init` and was generated as ecdsa. closes #6448 --- lib/leap_cli/commands/compile.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/leap_cli/commands/compile.rb b/lib/leap_cli/commands/compile.rb index 9c0725f..9308f20 100644 --- a/lib/leap_cli/commands/compile.rb +++ b/lib/leap_cli/commands/compile.rb @@ -64,7 +64,7 @@ module LeapCli unless file_exists?(priv_key_file, pub_key_file) ensure_dir(File.dirname(priv_key_file)) ensure_dir(File.dirname(pub_key_file)) - cmd = %(ssh-keygen -N '' -C 'monitor' -t ecdsa -b 521 -f '%s') % priv_key_file + cmd = %(ssh-keygen -N '' -C 'monitor' -t rsa -b 4096 -f '%s') % priv_key_file assert_run! cmd if file_exists?(priv_key_file, pub_key_file) log :created, priv_key_file @@ -86,6 +86,7 @@ module LeapCli if keys.empty? bail! "You must have at least one public SSH user key configured in order to proceed. See `leap help add-user`." end + keys << path(:monitor_pub_key) keys.sort.each do |keyfile| ssh_type, ssh_key = File.read(keyfile).strip.split(" ") buffer << ssh_type -- cgit v1.2.3