summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-09-02 11:36:38 +0000
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-09-02 11:36:38 +0000
commit90031f21dc66e28f8883cb58af3f07c35b61d273 (patch)
tree94d651f9da2d68fb5a233e14e365030fb70d0986 /src/conf_mode
parent022c5e810b8fd62b193e6eee62bfe344e294b25e (diff)
downloadvyos-1x-90031f21dc66e28f8883cb58af3f07c35b61d273.tar.gz
vyos-1x-90031f21dc66e28f8883cb58af3f07c35b61d273.zip
sstp-server: T2661: Delete CA certificate redundancy check
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/vpn_sstp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/conf_mode/vpn_sstp.py b/src/conf_mode/vpn_sstp.py
index 47367f125..11925dfa4 100755
--- a/src/conf_mode/vpn_sstp.py
+++ b/src/conf_mode/vpn_sstp.py
@@ -57,9 +57,7 @@ def verify(sstp):
# SSL certificate checks
#
tmp = dict_search('ssl.ca_cert_file', sstp)
- if not tmp:
- raise ConfigError(f'SSL CA certificate file required!')
- else:
+ if tmp:
if not os.path.isfile(tmp):
raise ConfigError(f'SSL CA certificate "{tmp}" does not exist!')