[pve-devel] [PATCH manager 1/3] gui: cert: add public key type & size to certs view

Alwin Antreich a.antreich at proxmox.com
Mon Jul 22 17:11:37 CEST 2019


by default the fields are hidden

Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
---
 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,
-- 
2.20.1





More information about the pve-devel mailing list