summaryrefslogtreecommitdiff
path: root/op-mode-definitions/pki.xml.in
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-08-09 20:57:53 +0300
committerGitHub <noreply@github.com>2023-08-09 20:57:53 +0300
commitdaf8f26f0d7cd67ad015e280ce297bc794800a7f (patch)
treedae070a1f3ad40b6fb9bc503a7f4e6d1750f6468 /op-mode-definitions/pki.xml.in
parente4b932ed0a140c9ced9a4eb501d520560b125406 (diff)
parent9427d7b001bd9cb769fb2940cfa263a448d62b80 (diff)
downloadvyos-1x-daf8f26f0d7cd67ad015e280ce297bc794800a7f.tar.gz
vyos-1x-daf8f26f0d7cd67ad015e280ce297bc794800a7f.zip
Merge pull request #2143 from dmbaturin/T5273-cert-fingerprint
pki: T5273: add a certificate fingerprint command
Diffstat (limited to 'op-mode-definitions/pki.xml.in')
-rw-r--r--op-mode-definitions/pki.xml.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/op-mode-definitions/pki.xml.in b/op-mode-definitions/pki.xml.in
index c5abf86cd..ca0eb3687 100644
--- a/op-mode-definitions/pki.xml.in
+++ b/op-mode-definitions/pki.xml.in
@@ -535,6 +535,15 @@
</properties>
<command>sudo ${vyos_op_scripts_dir}/pki.py --action show --certificate "$4" --pem</command>
</leafNode>
+ <tagNode name="fingerprint">
+ <properties>
+ <help>Show x509 certificate fingerprint</help>
+ <completionHelp>
+ <list>sha256 sha384 sha512</list>
+ </completionHelp>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/pki.py --action show --certificate "$4" --fingerprint "$6"</command>
+ </tagNode>
</children>
</tagNode>
<leafNode name="crl">