From f7eb993245e9503408509b87ce4a114fe7632447 Mon Sep 17 00:00:00 2001 From: Seth Date: Tue, 29 Jun 2010 13:15:33 +0200 Subject: Add "remote-cert-tls server" config option into the exported configuration. Ticket #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 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']) -- cgit v1.2.3