aboutsummaryrefslogtreecommitdiffstats
path: root/config/openvpn-client-export
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-03-01 21:07:28 +0000
committerErmal Luçi <eri@pfsense.org>2010-03-01 21:07:28 +0000
commit05a1116c3d44fe5674bd4e9ea6cf54def8f959b1 (patch)
tree53d88cd5c9d7bfeebc8583556976db73428ee25b /config/openvpn-client-export
parent4b887e8bcd0237a72faa9fcfacaf8120b0cd123d (diff)
downloadpfsense-packages-05a1116c3d44fe5674bd4e9ea6cf54def8f959b1.tar.gz
pfsense-packages-05a1116c3d44fe5674bd4e9ea6cf54def8f959b1.tar.bz2
pfsense-packages-05a1116c3d44fe5674bd4e9ea6cf54def8f959b1.zip
The tls-auth needs a 1 at the end of the key.
Diffstat (limited to 'config/openvpn-client-export')
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc
index 15096e6c..a2a59fb0 100755
--- a/config/openvpn-client-export/openvpn-client-export.inc
+++ b/config/openvpn-client-export/openvpn-client-export.inc
@@ -181,7 +181,7 @@ function openvpn_client_export_config($srvid, $usrid, $crtid, $useaddr, $usetoke
if($nokeys == false) {
if ($settings['tls'])
- $conf .= "tls-auth {$prefix}-tls.key\n";
+ $conf .= "tls-auth {$prefix}-tls.key 1\n";
}
// add optional settings
@@ -359,7 +359,7 @@ EOF;
$configfile = "{$tempdir}/config.conf";
$conf .= <<<EOF
cert cert.crt
-tls-auth ta.key
+tls-auth ta.key 1
ca ca.crt
key key.key
EOF;