aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc
index c453b8e2..8d7d338b 100755
--- a/config/openvpn-client-export/openvpn-client-export.inc
+++ b/config/openvpn-client-export/openvpn-client-export.inc
@@ -423,6 +423,14 @@ function viscosity_openvpn_client_config_exporter($srvid, $usrid, $crtid, $usead
if (!$conf)
return false;
+ // We need to nuke the ca line from the above config if it exists.
+ $conf = explode("\n", $conf);
+ for ($i=0; $i < count($conf); $i++) {
+ if (substr($conf[$i], 0, 3) == "ca ")
+ unset($conf[$i]);
+ }
+ $conf = implode("\n", $conf);
+
$friendly_name = $settings['description'];
$visc_settings = <<<EOF
#-- Config Auto Generated By pfSense for Viscosity --#