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

Pavel Vomacka pvomacka at redhat.com
Tue Mar 29 09:42:57 UTC 2016



On 03/16/2016 06:56 PM, Petr Vobornik wrote:
> 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;
> }
Fixed.
>
>
> 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
The download button is really good idea. There is attached another patch 
which adds this button. If we need new ticket let me know and I will 
file it.

--
Pavel^3 Vomacka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pvomacka-0009-2-Show-certificate-in-useful-format.patch
Type: text/x-patch
Size: 1731 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160329/1e3e23cf/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pvomacka-0010-Add-download-button-for-certificates.patch
Type: text/x-patch
Size: 3937 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160329/1e3e23cf/attachment-0001.bin>


More information about the Freeipa-devel mailing list