summaryrefslogtreecommitdiff
path: root/interface-definitions/include/pki/cli-private-key-base64.xml.i
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-10 12:07:55 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-02-10 11:15:49 +0000
commitec049d192ddb1d2173d54b429213694ba0e6f15f (patch)
tree27fde0bc8c75adc5ff37dd2169d553687857ee3f /interface-definitions/include/pki/cli-private-key-base64.xml.i
parent791c07e804a1a7e1c48e1a2f491c10148137bc20 (diff)
downloadvyos-1x-ec049d192ddb1d2173d54b429213694ba0e6f15f.tar.gz
vyos-1x-ec049d192ddb1d2173d54b429213694ba0e6f15f.zip
xml: T5738: improve PKI building blocks for CLI
(cherry picked from commit d4278cde2b153e163fe41e1bc461891397336bc3)
Diffstat (limited to 'interface-definitions/include/pki/cli-private-key-base64.xml.i')
-rw-r--r--interface-definitions/include/pki/cli-private-key-base64.xml.i11
1 files changed, 11 insertions, 0 deletions
diff --git a/interface-definitions/include/pki/cli-private-key-base64.xml.i b/interface-definitions/include/pki/cli-private-key-base64.xml.i
new file mode 100644
index 000000000..3a7ee0ce9
--- /dev/null
+++ b/interface-definitions/include/pki/cli-private-key-base64.xml.i
@@ -0,0 +1,11 @@
+<!-- include start from pki/pki-cli-private-key.xml.i -->
+<leafNode name="key">
+ <properties>
+ <help>Private key in PEM format</help>
+ <constraint>
+ <validator name="base64"/>
+ </constraint>
+ <constraintErrorMessage>Private key is not base64-encoded</constraintErrorMessage>
+ </properties>
+</leafNode>
+<!-- include end -->