From 6ce8555226e139d42e45d9aead51e47ffc11a823 Mon Sep 17 00:00:00 2001 From: Juan Gilsanz Polo Date: Fri, 28 Oct 2022 14:42:47 +0200 Subject: [PATCH] Added key type info --- lib/l10n/app_en.arb | 3 ++- lib/l10n/app_es.arb | 3 ++- lib/screens/settings/encryption/encryption.dart | 9 ++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index e8ce592..a7109d9 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -558,5 +558,6 @@ "keysNotMatch": "Invalid certificate or key: tls: private key does not match public key", "nameTimeLogs": "Name and time on logs", "nameTimeLogsDescription": "Show client name and processing time on logs list", - "hostNames": "Host names" + "hostNames": "Host names", + "keyType": "Key type" } \ No newline at end of file diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index 9f162bb..d8976fe 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -558,5 +558,6 @@ "keysNotMatch": "Certificado o clave inválido: tls: la clave privada no corresponde con la clave pública", "nameTimeLogs": "Nombre y tiempo en 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" } \ No newline at end of file diff --git a/lib/screens/settings/encryption/encryption.dart b/lib/screens/settings/encryption/encryption.dart index 0258ff5..0bb1183 100644 --- a/lib/screens/settings/encryption/encryption.dart +++ b/lib/screens/settings/encryption/encryption.dart @@ -481,7 +481,7 @@ class _EncryptionSettingsWidgetState extends State { label: "${AppLocalizations.of(context)!.hostNames}: ${certKeyValid!['dns_names'].join(', ')}" ), const SizedBox(height: 10), - ] + ], ], SectionLabel(label: AppLocalizations.of(context)!.privateKey), RadioListTile( @@ -569,6 +569,13 @@ class _EncryptionSettingsWidgetState extends State { ), 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) ] ],