Show alternative names in certificate dialog (#17839)

This commit is contained in:
Joakim Sørensen 2023-09-08 19:55:27 +02:00 committed by GitHub
parent eae4ca1271
commit 19c4ed4690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -11,6 +11,7 @@ export interface CertificateInformation {
common_name: string;
expire_date: string;
fingerprint: string;
alternative_names: string[];
}
export interface CloudPreferences {

View File

@ -62,6 +62,16 @@ class DialogCloudCertificate extends LitElement {
)}
${certificateInfo.fingerprint}
</p>
<p class="break-word">
${this.hass!.localize(
"ui.panel.config.cloud.dialog_certificate.alternative_names"
)}
</p>
<ul>
${certificateInfo.alternative_names.map(
(name) => html`<li><code>${name}</code></li>`
)}
</ul>
</div>
<mwc-button @click=${this.closeDialog} slot="primaryAction">

View File

@ -3183,6 +3183,7 @@
}
},
"dialog_certificate": {
"alternative_names": "Alternative names:",
"certificate_information": "Certificate information",
"certificate_expiration_date": "Certificate expiration date:",
"will_be_auto_renewed": "will be automatically renewed",