summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-01-28 16:37:25 -0600
committerJohn Southworth <john.southworth@vyatta.com>2011-01-28 16:37:25 -0600
commitcb673fa0fa11b25dcbb4872d46d6a60af2a2e4af (patch)
treec2bc7ff50b9dde5f364a36d29fbcb7e840de46e9 /scripts
parent6fd44e43be5f1670ee19e330ae24761b1857642c (diff)
downloadvyatta-cfg-vpn-cb673fa0fa11b25dcbb4872d46d6a60af2a2e4af.tar.gz
vyatta-cfg-vpn-cb673fa0fa11b25dcbb4872d46d6a60af2a2e4af.zip
Bugfix: 5684, added quotes around rsa keys in ipsec.conf so that strongswan doesn't fail on ==
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vpn-config.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl
index fdbe079..3d4c2bf 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -953,7 +953,7 @@ if ( $vcVPN->exists('ipsec') ) {
"$vpn_cfg_err Unable to determine local public key from local key"
. " file \"$local_key_file\" for peer \"$peer\".\n";
} else {
- $genout .= "\tleftrsasigkey=$local_key\n";
+ $genout .= "\tleftrsasigkey=\"$local_key\"\n";
}
my $rsa_key_name = $vcVPN->returnValue(
@@ -972,7 +972,7 @@ if ( $vcVPN->exists('ipsec') ) {
"$vpn_cfg_err No remote key configured for rsa key name "
. "\"$rsa_key_name\" that is specified for peer \"$peer\".\n";
} else {
- $genout .= "\trightrsasigkey=$remote_key\n";
+ $genout .= "\trightrsasigkey=\"$remote_key\"\n";
}
}
$genout_secrets .= "include $local_key_file\n";