summaryrefslogtreecommitdiff
path: root/src/op_mode/pki.py
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2022-05-31 00:00:55 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2022-05-31 00:00:55 +0200
commit43cd3468868712434625826379e0e6b95b34f474 (patch)
tree3070cb82df5de7a565db284f6a1c0a16392c6cc3 /src/op_mode/pki.py
parentd9434e4b6e64e00eddb735a265f3fd86610d7004 (diff)
downloadvyos-1x-43cd3468868712434625826379e0e6b95b34f474.tar.gz
vyos-1x-43cd3468868712434625826379e0e6b95b34f474.zip
pki: T3642: Enable `generate pki openvpn ...` to install into config
Diffstat (limited to 'src/op_mode/pki.py')
-rwxr-xr-xsrc/op_mode/pki.py5
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)