diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-05-05 12:19:40 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-05-05 12:19:40 -0500 |
commit | 5af19899486decd3374fdbcf776afee64047884d (patch) | |
tree | c9093c39721e591d137ec7091fa3cf5f8274b517 /scripts | |
parent | d9379eaf7c10563738c34a09964421b9762f0a1b (diff) | |
parent | 394feb13af6ebb3f102fdd440f5050a79c2c3e8e (diff) | |
download | vyatta-op-vpn-5af19899486decd3374fdbcf776afee64047884d.tar.gz vyatta-op-vpn-5af19899486decd3374fdbcf776afee64047884d.zip |
Merge branch 'napa' of git.vyatta.com:/git/vyatta-op-vpn into napa
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gen_local_rsa_key.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/gen_local_rsa_key.pl b/scripts/gen_local_rsa_key.pl index 9bf914c..4f800ab 100755 --- a/scripts/gen_local_rsa_key.pl +++ b/scripts/gen_local_rsa_key.pl @@ -27,7 +27,7 @@ use strict; use warnings; use lib "/opt/vyatta/share/perl5/"; use Vyatta::VPN::Util; - +use Vyatta::Misc qw(get_short_config_path); # Defaults my $bits = 2192; @@ -93,7 +93,10 @@ $cmd = "/usr/lib/ipsec/newhostkey --output $local_key_file --bits $bits"; # $cmd .= " --random $device"; -print "Generating rsa-key to $local_key_file\n"; +# when presenting to users, show shortened /config path +my $shortened_cfg_path_file = get_short_config_path($local_key_file); +print "Generating rsa-key to $shortened_cfg_path_file\n"; + vpn_debug $cmd; $rc = system($cmd); if ($rc != 0) { |