diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-05-31 00:00:55 +0200 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-05-31 00:00:55 +0200 |
commit | 43cd3468868712434625826379e0e6b95b34f474 (patch) | |
tree | 3070cb82df5de7a565db284f6a1c0a16392c6cc3 /src/op_mode | |
parent | d9434e4b6e64e00eddb735a265f3fd86610d7004 (diff) | |
download | vyos-1x-43cd3468868712434625826379e0e6b95b34f474.tar.gz vyos-1x-43cd3468868712434625826379e0e6b95b34f474.zip |
pki: T3642: Enable `generate pki openvpn ...` to install into config
Diffstat (limited to 'src/op_mode')
-rwxr-xr-x | src/op_mode/pki.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/op_mode/pki.py b/src/op_mode/pki.py index 193d97744..1e78c3a03 100755 --- a/src/op_mode/pki.py +++ b/src/op_mode/pki.py @@ -653,10 +653,7 @@ def generate_openvpn_key(name, install=False, file=False): if version_search: key_version = version_search[1] - base = f"set pki openvpn shared-secret {name}" - print("Configure mode commands to install OpenVPN key:") - print(f"{base} key '{key_data}'") - print(f"{base} version '{key_version}'") + install_openvpn_key(name, key_data, key_version) if file: write_file(f'{name}.key', result) |