summaryrefslogtreecommitdiffstats
path: root/lib/network/vpn
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/vpn')
-rw-r--r--lib/network/vpn/openvpn.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/network/vpn/openvpn.pm b/lib/network/vpn/openvpn.pm
index 813f453..68e1b3f 100644
--- a/lib/network/vpn/openvpn.pm
+++ b/lib/network/vpn/openvpn.pm
@@ -73,6 +73,8 @@ sub write_config {
}
delete $connection->{keysize} if !$connection->{cipher};
+ delete $connection->{ca_file} if $connection->{pkcs12_file};
+
if ($connection->{type} eq 'static') {
$connection->{secret_file} = delete $connection->{key};
delete $connection->{ca_file};