diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-11-24 20:54:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 20:54:46 +0100 |
commit | 0f3f4fe83da281969be38476e742bc7691ba39cd (patch) | |
tree | dadbc2d82f1f6ea57daa479d6fbd0da2d7190c73 | |
parent | f97c72ee7efd7ecd57c72a0387154738922c48f5 (diff) | |
parent | 735ce8330c24dc9f73248c0f1e9b37a741fa407f (diff) | |
download | vyos-1x-0f3f4fe83da281969be38476e742bc7691ba39cd.tar.gz vyos-1x-0f3f4fe83da281969be38476e742bc7691ba39cd.zip |
Merge pull request #1082 from DmitriyEshenko/1x-24112021-eq-03
sstp: T2661: Delete certificate files redundancy check
-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: |