]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Certificate.pm
PVE::Certificate - set renderers for unix epoch and 'san'
[pve-common.git] / 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',
            },