diff options
author | Christian Breunig <christian@breunig.cc> | 2024-05-26 14:48:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-26 14:48:17 +0200 |
commit | 6b3ec33cb381583800a6027db9acdf0db5c2c9bb (patch) | |
tree | 4e7864d79ea3da743acaa696c667815a9ea0a664 | |
parent | 4a9befb92550ae9abd5cf687208fdb09838ccc9d (diff) | |
parent | 9f02740f063b0b4a2a83551155202a02b6e4bad0 (diff) | |
download | vyos-1x-6b3ec33cb381583800a6027db9acdf0db5c2c9bb.tar.gz vyos-1x-6b3ec33cb381583800a6027db9acdf0db5c2c9bb.zip |
Merge pull request #3521 from vyos/mergify/bp/sagitta/pr-3517
op-mode: T6377: must call pki.py helper as root to work with ACME certificates (backport #3517)
-rw-r--r-- | op-mode-definitions/pki.xml.in | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/op-mode-definitions/pki.xml.in b/op-mode-definitions/pki.xml.in index a5e01bade..f76b4f4e1 100644 --- a/op-mode-definitions/pki.xml.in +++ b/op-mode-definitions/pki.xml.in @@ -495,7 +495,7 @@ <properties> <help>Show x509 CA certificates</help> </properties> - <command>${vyos_op_scripts_dir}/pki.py --action show --ca "all"</command> + <command>sudo ${vyos_op_scripts_dir}/pki.py --action show --ca "all"</command> </leafNode> <tagNode name="ca"> <properties> @@ -504,13 +504,13 @@ <path>pki ca</path> </completionHelp> </properties> - <command>${vyos_op_scripts_dir}/pki.py --action show --ca "$4"</command> + <command>sudo ${vyos_op_scripts_dir}/pki.py --action show --ca "$4"</command> <children> <leafNode name="pem"> <properties> <help>Show x509 CA certificate in PEM format</help> </properties> - <command>${vyos_op_scripts_dir}/pki.py --action show --ca "$4" --pem</command> + <command>sudo ${vyos_op_scripts_dir}/pki.py --action show --ca "$4" --pem</command> </leafNode> </children> </tagNode> @@ -518,7 +518,7 @@ <properties> <help>Show x509 certificates</help> </properties> - <command>${vyos_op_scripts_dir}/pki.py --action show --certificate "all"</command> + <command>sudo ${vyos_op_scripts_dir}/pki.py --action show --certificate "all"</command> </leafNode> <tagNode name="certificate"> <properties> @@ -527,7 +527,7 @@ <path>pki certificate</path> </completionHelp> </properties> - <command>${vyos_op_scripts_dir}/pki.py --action show --certificate "$4"</command> + <command>sudo ${vyos_op_scripts_dir}/pki.py --action show --certificate "$4"</command> <children> <leafNode name="pem"> <properties> @@ -542,7 +542,7 @@ <list>sha256 sha384 sha512</list> </completionHelp> </properties> - <command>${vyos_op_scripts_dir}/pki.py --action show --certificate "$4" --fingerprint "$6"</command> + <command>sudo ${vyos_op_scripts_dir}/pki.py --action show --certificate "$4" --fingerprint "$6"</command> </tagNode> </children> </tagNode> |