From a8f64f3d477460a0fe87254b9ef4a29f37d926e2 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 29 Jun 2010 10:54:30 -0400 Subject: Add this in all cases, not just TLS. Fixes #706 --- config/openvpn-client-export/openvpn-client-export.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config/openvpn-client-export') diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc index 97cbfa64..85f18cae 100755 --- a/config/openvpn-client-export/openvpn-client-export.inc +++ b/config/openvpn-client-export/openvpn-client-export.inc @@ -197,9 +197,11 @@ function openvpn_client_export_config($srvid, $usrid, $crtid, $useaddr, $usetoke if ($settings['tls'] && !$skiptls) { $conf .= "tls-auth {$prefix}-tls.key 1\n"; - $conf .= "remote-cert-tls server\n"; } + // Prevent MITM attacks by verifying the server certificate. + $conf .= "remote-cert-tls server\n"; + // add optional settings if ($settings['compression']) $conf .= "comp-lzo\n"; -- cgit v1.2.3