1023 && $size < 9600) ? (string) $size : "4096"; exec(\neato::get_user_bin . 'ssh-keygen -t rsa -b '. safeCmd($s_size) .' -f ' . safeCmd($file) . ' -N \'' . safeCmd($pwd) . '\' -C \'' . safeCmd($comment) . '\'', $output, $exit_code); display($output); checkForError($exit_code, "Unable to run ssh-keygen command: {$file}"); return $exit_code; } public static function sign(string $host_ca_file, string $file, string $hostname, string $type="-h", string $fqdn = "", string $validfor = "+52w") { exec(\neato::get_user_bin . 'ssh-keygen -s '. safeCmd($host_ca_file).' -I '. safeCmd($hostname).' '. safeCmd($type).' -n '. safeCmd($fqdn).' -V '. safeCmd($validfor).' '. safeCmd($file), $output, $exit_code); display($output); checkForError($exit_code, "Unable to run ssh-keygen command: {$file}"); return $exit_code; } }