From e81645f5deceadcd36f79c383c6989f5b02c03e4 Mon Sep 17 00:00:00 2001 From: Alwin Antreich Date: Mon, 22 Jul 2019 17:11:37 +0200 Subject: [PATCH] gui: cert: add public key type & size to certs view by default the fields are hidden Signed-off-by: Alwin Antreich --- www/manager6/node/Certificates.js | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/www/manager6/node/Certificates.js b/www/manager6/node/Certificates.js index d8032ffd..df2fd7de 100644 --- a/www/manager6/node/Certificates.js +++ b/www/manager6/node/Certificates.js @@ -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,