aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc
index 8838cf59..97cbfa64 100755
--- a/config/openvpn-client-export/openvpn-client-export.inc
+++ b/config/openvpn-client-export/openvpn-client-export.inc
@@ -195,8 +195,10 @@ function openvpn_client_export_config($srvid, $usrid, $crtid, $useaddr, $usetoke
} else if ($settings['mode'] == "server_user")
$conf .= "ca {$cafile}\n";
- if ($settings['tls'] && !$skiptls)
+ if ($settings['tls'] && !$skiptls) {
$conf .= "tls-auth {$prefix}-tls.key 1\n";
+ $conf .= "remote-cert-tls server\n";
+ }
// add optional settings
if ($settings['compression'])