]> git.proxmox.com Git - pve-common.git/commitdiff
cert: add public key type & size to JSON schema
authorAlwin Antreich <a.antreich@proxmox.com>
Mon, 22 Jul 2019 15:11:38 +0000 (17:11 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 Jul 2019 06:39:33 +0000 (08:39 +0200)
Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
src/PVE/Certificate.pm

index 65c5c8f6f2f5c2a1e73d7236b9229dc76b56bd1f..5ab920f24869a4aff5cc7920232445a961e5d62b 100644 (file)
@@ -78,6 +78,16 @@ PVE::JSONSchema::register_standard_option('pve-certificate-info', {
            format => 'pem-certificate',
            optional => 1,
        },
            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,
+       },
     },
 });
 
     },
 });