diff options
author | Seth <seth.mos@xs4all.nl> | 2010-06-29 13:15:33 +0200 |
---|---|---|
committer | Seth <seth.mos@xs4all.nl> | 2010-06-29 13:15:33 +0200 |
commit | f7eb993245e9503408509b87ce4a114fe7632447 (patch) | |
tree | 036a2174f908d4ea5436f4d01fcf45f7339a2be8 /config | |
parent | 849043c0705fcee1a5a6d4a9fac1b8b1a7f2a726 (diff) | |
download | pfsense-packages-f7eb993245e9503408509b87ce4a114fe7632447.tar.gz pfsense-packages-f7eb993245e9503408509b87ce4a114fe7632447.tar.bz2 pfsense-packages-f7eb993245e9503408509b87ce4a114fe7632447.zip |
Add "remote-cert-tls server" config option into the exported configuration. Ticket #706
Diffstat (limited to 'config')
-rwxr-xr-x | config/openvpn-client-export/openvpn-client-export.inc | 4 |
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']) |