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 b0b9bbf..691e70b 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',
            },