summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-23 09:15:14 +0200
committerGitHub <noreply@github.com>2021-09-23 09:15:14 +0200
commit1982211d2a3232d2c95399a885ac3ba998ec0ea5 (patch)
tree17ba542ab49cbd7bd55cdd346d3c9f62e13fd878 /src
parent6935c263f5022896e96bec9daa8a5ba29b04b51b (diff)
parentb4926009b15da34a0e76029447732c17e8a1431b (diff)
downloadvyos-1x-1982211d2a3232d2c95399a885ac3ba998ec0ea5.tar.gz
vyos-1x-1982211d2a3232d2c95399a885ac3ba998ec0ea5.zip
Merge pull request #1014 from nagua/fix_smaller_openvpn_issues
T3642: Fix smaller OpenVpn issues
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-openvpn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py
index 02b7f83bf..ce62a8b82 100755
--- a/src/conf_mode/interfaces-openvpn.py
+++ b/src/conf_mode/interfaces-openvpn.py
@@ -134,7 +134,7 @@ def verify_pki(openvpn):
if tls['certificate'] not in pki['certificate']:
raise ConfigError(f'Invalid certificate on openvpn interface {interface}')
- if dict_search_args(pki, 'certificate', tls['certificate'], 'private', 'password_protected'):
+ if dict_search_args(pki, 'certificate', tls['certificate'], 'private', 'password_protected') is not None:
raise ConfigError(f'Cannot use encrypted private key on openvpn interface {interface}')
if mode == 'server' and 'dh_params' not in tls and not is_ec_private_key(pki, tls['certificate']):