[Freeipa-devel] [PATCH] 0009 webui: Show certificates in useful format

Petr Vobornik pvoborni at redhat.com
Wed Mar 16 17:56:10 UTC 2016


On 03/15/2016 01:23 PM, Pavel Vomacka wrote:
> Hello,
>
> patch for https://fedorahosted.org/freeipa/ticket/5311 is attached.
>
> --
> Pavel^3 Vomacka
>

Not tested, but can we avoid using <br> s with "white-space: pre" and 
therefore use only IPA.cert.pem_cert_format(text).

Also, it should be displayed in monospaced, so probably add:

.certificate-widget .certificate {
     font-family: monospace;
     overflow-x: auto;
     white-space: pre;
}


Probably as a separate patch or ticket: we can add "download" button 
which would offer the certificate in form of data uri[1] with 'download' 
attribute of 'a' element [2]. So user will get pem encoded file without 
any hassle.

[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/data_URIs
[2] https://developer.mozilla.org/en/docs/Web/HTML/Element/a
-- 
Petr Vobornik




More information about the Freeipa-devel mailing list