]> git.proxmox.com Git - pve-common.git/commitdiff
PVE::Certificate - set renderers for unix epoch and 'san'
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 25 Jul 2018 12:59:25 +0000 (14:59 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 26 Jul 2018 09:57:15 +0000 (11:57 +0200)
src/PVE/Certificate.pm

index b0b9bbfd714564a4a60399c1c90a3ddcc5a91840..691e70b621b9a66017fb4a5dc5974c4750353e87 100644 (file)
@@ -54,17 +54,20 @@ PVE::JSONSchema::register_standard_option('pve-certificate-info', {
        notbefore => {
            type => 'integer',
            description => 'Certificate\'s notBefore timestamp (UNIX epoch).',
+           renderer => 'timestamp',
            optional => 1,
        },
        notafter => {
            type => 'integer',
            description => 'Certificate\'s notAfter timestamp (UNIX epoch).',
+           renderer => 'timestamp',
            optional => 1,
        },
        san => {
            type => 'array',
            description => 'List of Certificate\'s SubjectAlternativeName entries.',
            optional => 1,
+           renderer => 'yaml',
            items => {
                type => 'string',
            },