Skip to content

Commit 6b3ec33

Browse files
authored
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)
2 parents 4a9befb + 9f02740 commit 6b3ec33

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

op-mode-definitions/pki.xml.in

+6-6
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@
495495
<properties>
496496
<help>Show x509 CA certificates</help>
497497
</properties>
498-
<command>${vyos_op_scripts_dir}/pki.py --action show --ca "all"</command>
498+
<command>sudo ${vyos_op_scripts_dir}/pki.py --action show --ca "all"</command>
499499
</leafNode>
500500
<tagNode name="ca">
501501
<properties>
@@ -504,21 +504,21 @@
504504
<path>pki ca</path>
505505
</completionHelp>
506506
</properties>
507-
<command>${vyos_op_scripts_dir}/pki.py --action show --ca "$4"</command>
507+
<command>sudo ${vyos_op_scripts_dir}/pki.py --action show --ca "$4"</command>
508508
<children>
509509
<leafNode name="pem">
510510
<properties>
511511
<help>Show x509 CA certificate in PEM format</help>
512512
</properties>
513-
<command>${vyos_op_scripts_dir}/pki.py --action show --ca "$4" --pem</command>
513+
<command>sudo ${vyos_op_scripts_dir}/pki.py --action show --ca "$4" --pem</command>
514514
</leafNode>
515515
</children>
516516
</tagNode>
517517
<leafNode name="certificate">
518518
<properties>
519519
<help>Show x509 certificates</help>
520520
</properties>
521-
<command>${vyos_op_scripts_dir}/pki.py --action show --certificate "all"</command>
521+
<command>sudo ${vyos_op_scripts_dir}/pki.py --action show --certificate "all"</command>
522522
</leafNode>
523523
<tagNode name="certificate">
524524
<properties>
@@ -527,7 +527,7 @@
527527
<path>pki certificate</path>
528528
</completionHelp>
529529
</properties>
530-
<command>${vyos_op_scripts_dir}/pki.py --action show --certificate "$4"</command>
530+
<command>sudo ${vyos_op_scripts_dir}/pki.py --action show --certificate "$4"</command>
531531
<children>
532532
<leafNode name="pem">
533533
<properties>
@@ -542,7 +542,7 @@
542542
<list>sha256 sha384 sha512</list>
543543
</completionHelp>
544544
</properties>
545-
<command>${vyos_op_scripts_dir}/pki.py --action show --certificate "$4" --fingerprint "$6"</command>
545+
<command>sudo ${vyos_op_scripts_dir}/pki.py --action show --certificate "$4" --fingerprint "$6"</command>
546546
</tagNode>
547547
</children>
548548
</tagNode>

0 commit comments

Comments
 (0)