summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/network/vpn/openvpn.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/vpn/openvpn.pm b/lib/network/vpn/openvpn.pm
index ac5acf1..813f453 100644
--- a/lib/network/vpn/openvpn.pm
+++ b/lib/network/vpn/openvpn.pm
@@ -142,7 +142,7 @@ sub get_key_settings {
N("Certificate Authority (CA)"),
type => 'file',
val => \$connection->{ca_file},
- disabled => sub { $connection->{type} ne 'pki' },
+ disabled => sub { $connection->{type} ne 'pki' || $connection->{pkcs12_file} },
},
{
label => N("Certificate"),