diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-11-24 18:28:47 +0000 |
---|---|---|
committer | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-11-24 18:28:47 +0000 |
commit | 735ce8330c24dc9f73248c0f1e9b37a741fa407f (patch) | |
tree | 422005cddea15785d03a80fc8bb8bb78a7e76152 /src/conf_mode/vpn_sstp.py | |
parent | ac87c75e708ac3f7c29c415a4f17f63217cd399e (diff) | |
download | vyos-1x-735ce8330c24dc9f73248c0f1e9b37a741fa407f.tar.gz vyos-1x-735ce8330c24dc9f73248c0f1e9b37a741fa407f.zip |
sstp: T2661: Delete certificate files redundancy check
Diffstat (limited to 'src/conf_mode/vpn_sstp.py')
-rwxr-xr-x | src/conf_mode/vpn_sstp.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/conf_mode/vpn_sstp.py b/src/conf_mode/vpn_sstp.py index 070009722..215dfb37a 100755 --- a/src/conf_mode/vpn_sstp.py +++ b/src/conf_mode/vpn_sstp.py @@ -56,24 +56,13 @@ def verify(sstp): # # SSL certificate checks # - tmp = dict_search('ssl.ca_cert_file', sstp) - if tmp: - if not os.path.isfile(tmp): - raise ConfigError(f'SSL CA certificate "{tmp}" does not exist!') - tmp = dict_search('ssl.cert_file', sstp) if not tmp: raise ConfigError(f'SSL public key file required!') - else: - if not os.path.isfile(tmp): - raise ConfigError(f'SSL public key "{tmp}" does not exist!') tmp = dict_search('ssl.key_file', sstp) if not tmp: raise ConfigError(f'SSL private key file required!') - else: - if not os.path.isfile(tmp): - raise ConfigError(f'SSL private key "{tmp}" does not exist!') def generate(sstp): if not sstp: |