gui: cert: add public key type & size to certs view

by default the fields are hidden

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
This commit is contained in:
Alwin Antreich 2019-07-22 17:11:37 +02:00 committed by Thomas Lamprecht
parent 0cd3abab50
commit e81645f5de

View File

@ -57,6 +57,16 @@ Ext.define('PVE.node.CertificateViewer', {
fieldLabel: gettext('Subject'),
name: 'subject'
},
{
xtype: 'displayfield',
fieldLabel: gettext('Public Key Type'),
name: 'public-key-type'
},
{
xtype: 'displayfield',
fieldLabel: gettext('Public Key Size'),
name: 'public-key-bits'
},
{
xtype: 'displayfield',
fieldLabel: gettext('Valid Since'),
@ -220,7 +230,7 @@ Ext.define('PVE.node.CertUpload', {
Ext.define('pve-certificate', {
extend: 'Ext.data.Model',
fields: [ 'filename', 'fingerprint', 'issuer', 'notafter', 'notbefore', 'subject', 'san' ],
fields: [ 'filename', 'fingerprint', 'issuer', 'notafter', 'notbefore', 'subject', 'san', 'public-key-bits', 'public-key-type' ],
idProperty: 'filename'
});
@ -293,6 +303,18 @@ Ext.define('PVE.node.Certificates', {
flex: 1,
dataIndex: 'subject'
},
{
header: gettext('Public Key Alogrithm'),
flex: 1,
dataIndex: 'public-key-type',
hidden: true
},
{
header: gettext('Public Key Size'),
flex: 1,
dataIndex: 'public-key-bits',
hidden: true
},
{
header: gettext('Valid Since'),
width: 150,