Added key type info

This commit is contained in:
Juan Gilsanz Polo 2022-10-28 14:42:47 +02:00
parent 427636baf3
commit 6ce8555226
3 changed files with 12 additions and 3 deletions

View file

@ -558,5 +558,6 @@
"keysNotMatch": "Invalid certificate or key: tls: private key does not match public key", "keysNotMatch": "Invalid certificate or key: tls: private key does not match public key",
"nameTimeLogs": "Name and time on logs", "nameTimeLogs": "Name and time on logs",
"nameTimeLogsDescription": "Show client name and processing time on logs list", "nameTimeLogsDescription": "Show client name and processing time on logs list",
"hostNames": "Host names" "hostNames": "Host names",
"keyType": "Key type"
} }

View file

@ -558,5 +558,6 @@
"keysNotMatch": "Certificado o clave inválido: tls: la clave privada no corresponde con la clave pública", "keysNotMatch": "Certificado o clave inválido: tls: la clave privada no corresponde con la clave pública",
"nameTimeLogs": "Nombre y tiempo en logs", "nameTimeLogs": "Nombre y tiempo en logs",
"nameTimeLogsDescription": "Mostrar el nombre del cliente y el tiempo de procesamiento en la lista de logs", "nameTimeLogsDescription": "Mostrar el nombre del cliente y el tiempo de procesamiento en la lista de logs",
"hostNames": "Nombres de host" "hostNames": "Nombres de host",
"keyType": "Tipo de clave"
} }

View file

@ -481,7 +481,7 @@ class _EncryptionSettingsWidgetState extends State<EncryptionSettingsWidget> {
label: "${AppLocalizations.of(context)!.hostNames}: ${certKeyValid!['dns_names'].join(', ')}" label: "${AppLocalizations.of(context)!.hostNames}: ${certKeyValid!['dns_names'].join(', ')}"
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
] ],
], ],
SectionLabel(label: AppLocalizations.of(context)!.privateKey), SectionLabel(label: AppLocalizations.of(context)!.privateKey),
RadioListTile( RadioListTile(
@ -569,6 +569,13 @@ class _EncryptionSettingsWidgetState extends State<EncryptionSettingsWidget> {
), ),
const SizedBox(height: 10) const SizedBox(height: 10)
], ],
if (certKeyValid!['key_type'] != null) ...[
Status(
valid: true,
label: "${AppLocalizations.of(context)!.keyType}: ${certKeyValid!['key_type']}"
),
const SizedBox(height: 10),
],
const SizedBox(height: 10) const SizedBox(height: 10)
] ]
], ],