[pve-devel] [PATCH common 2/2] cert: add public key type & size to JSON schema

Alwin Antreich a.antreich at proxmox.com
Mon Jul 22 17:11:38 CEST 2019


Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
---
 src/PVE/Certificate.pm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/PVE/Certificate.pm b/src/PVE/Certificate.pm
index 65c5c8f..5ab920f 100644
--- a/src/PVE/Certificate.pm
+++ b/src/PVE/Certificate.pm
@@ -78,6 +78,16 @@ PVE::JSONSchema::register_standard_option('pve-certificate-info', {
 	    format => 'pem-certificate',
 	    optional => 1,
 	},
+	'public-key-type' => {
+	    type => 'string',
+	    description => 'Certificate\'s public key algorithm',
+	    optional => 1,
+	},
+	'public-key-bits' => {
+	    type => 'integer',
+	    description => 'Certificate\'s public key size',
+	    optional => 1,
+	},
     },
 });
 
-- 
2.20.1





More information about the pve-devel mailing list