unless [private_key_path,public_key_path].all?{|path| File.exists?(path) }
output = Puppet::Util::Execution.execute(
['/usr/bin/ssh-keygen','-t', 'rsa', '-b', '4096',
- '-f', private_key_path, '-P', '\'\'', '-q'])
+ '-f', private_key_path, '-P', '', '-q'])
raise Puppet::ParseError, "Something went wrong during key generation! Output: #{output}" unless output.empty?
end
[File.read(private_key_path),File.read(public_key_path)]