diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-29 10:46:35 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-29 10:46:35 +0100 |
commit | cb52204292838ba8dd6315ff123595c96883190d (patch) | |
tree | 66314433752eda7cf3bd76c36a75237a02ee97a4 /smoketest/scripts/cli/test_interfaces_openvpn.py | |
parent | 1e62e5e264f60b2e21a4855e264a5bcc8fdc32da (diff) | |
parent | ca75e23fee7e4c9f809e5cabf158e9aa749c997d (diff) | |
download | vyos-1x-cb52204292838ba8dd6315ff123595c96883190d.tar.gz vyos-1x-cb52204292838ba8dd6315ff123595c96883190d.zip |
Merge branch 't3255-rpki' of github.com:c-po/vyos-1x into current
* 't3255-rpki' of github.com:c-po/vyos-1x:
rpki: T3255: provide full protocol support in XML and Python
op-mode: ssh: support generating client keypair
smoketest: openvpn: remove print() when generating keys
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_openvpn.py')
-rwxr-xr-x | smoketest/scripts/cli/test_interfaces_openvpn.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_openvpn.py b/smoketest/scripts/cli/test_interfaces_openvpn.py index 00db3f667..a2a1a85ec 100755 --- a/smoketest/scripts/cli/test_interfaces_openvpn.py +++ b/smoketest/scripts/cli/test_interfaces_openvpn.py @@ -625,27 +625,27 @@ if __name__ == '__main__': # Generate mandatory SSL certificate tmp = f'openssl req -newkey rsa:4096 -new -nodes -x509 -days 3650 '\ f'-keyout {ssl_key} -out {ssl_cert} -subj {subject}' - print(cmd(tmp)) + cmd(tmp) if not os.path.isfile(ca_cert): # Generate "CA" tmp = f'openssl req -new -x509 -key {ssl_key} -out {ca_cert} -subj {subject}' - print(cmd(tmp)) + cmd(tmp) if not os.path.isfile(dh_pem): # Generate "DH" key tmp = f'openssl dhparam -out {dh_pem} 2048' - print(cmd(tmp)) + cmd(tmp) if not os.path.isfile(s2s_key): # Generate site-2-site key tmp = f'openvpn --genkey --secret {s2s_key}' - print(cmd(tmp)) + cmd(tmp) if not os.path.isfile(auth_key): # Generate TLS auth key tmp = f'openvpn --genkey --secret {auth_key}' - print(cmd(tmp)) + cmd(tmp) for file in [ca_cert, ssl_cert, ssl_key, dh_pem, s2s_key, auth_key]: cmd(f'sudo chown openvpn:openvpn {file}') |