freeipa/install/ui
John Dennis 9a039acb22 Ticket 1201 - Unable to Download Certificate with Browser
Certificates are passed through the IPA XML-RPC and JSON as binary
data in DER X509 format. Queries peformed against the LDAP server
also return binary DER X509 format. In all cases the binary DER
data is base-64 encoded.

PEM is standard text format for certificates. It also uses base64 to
encode the binary DER data, but had specific formatting
requirements. The base64 data must be wrapped inside PEM delimiters
and the base64 data must be line wrapped at 64 characters.

Most external software which accepts certificates as input will only
accept DER or PEM format (e.g. openssl & NSS). Although base64 is
closely related to PEM it is not PEM unless the PEM delimters are
present and the base64 data is line wrapped at 64 characters.

We already convert binary DER certificates which have been passed as
base64 in other parts of the IPA code. However this conversion has not
been available in the web UI. When the web UI presented certificates
it did so by filling a dialog box with a single line of base64 data. A
user could not copy this data and use it as input to openssl or NSS
for example.

We resolve this problem by introducing new javascript functions in
certificate.js. IPA.cert.pem_cert_format(text) will examine the text
input and if it's already in PEM format just return it unmodified,
otherwise it will line wrap the base64 data and add the PEM
delimiters. Thus it is safe to call on either a previously formated
PEM cert or a binary DER cert encoded as base64. This applies to
pem_csr_format() as well for CSR's.

Because pem_cert_format() is safe to call on either format the web UI
will see the use of the flag add_pem_delimiters was eliminated except
in the one case where the IPA.cert.download_dialog() was being abused
to display PKCS12 binary data (pkcs12 is neither a cert nor a cert
request). Because of the abuse of the cert.download_dialog() for
pkcs12 it was necessary to retain the flag which in effect said "do
not treat the data as PEM".

Modify the CSR (Certificate Signing Request) dialog box to accept a
PEM formatted CSR. Remove the artifical PEM delimiters above and below
the dialog box which were used to suggest the input needed to be sans
the delimiters. The dialog box continues to accept bare base64 thus
allowing either text format.

Also note this solves the display of certificate data in the UI
without touching anything existing code in the server or command line,
thus it's isolated.
2011-10-21 15:29:47 +00:00
..
test Fixing infinite loop in UI navigation unit test. 2011-10-20 13:13:58 -02:00
aci.js Added confirmation when adding multiple entries. 2011-10-05 14:51:50 +02:00
add-icon.png Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
add.js Added confirmation when adding multiple entries. 2011-10-05 14:51:50 +02:00
arrow_collapsed.png Added arrow icons for details sections. 2011-07-01 20:57:58 -04:00
arrow_expanded.png Added arrow icons for details sections. 2011-07-01 20:57:58 -04:00
association.js Added selectable labels for radio buttons. 2011-10-05 15:08:07 +02:00
automount.js Replaced description text fields with text areas. 2011-09-26 16:38:21 +00:00
background-center.png Fixed resizing issues. 2011-06-13 09:23:29 -04:00
background-left.png Fixed resizing issues. 2011-06-13 09:23:29 -04:00
background-right.png Fixed resizing issues. 2011-06-13 09:23:29 -04:00
caution.png Adjusted aci's target feilds, adjusted action panel styles, adjusted Delegation and Configuration. 2011-01-27 16:54:20 -05:00
centered-bg.png Fixed links to images in config and migration pages 2011-10-06 23:24:12 -05:00
certificate.js Ticket 1201 - Unable to Download Certificate with Browser 2011-10-21 15:29:47 +00:00
check.png Adjusted aci's target feilds, adjusted action panel styles, adjusted Delegation and Configuration. 2011-01-27 16:54:20 -05:00
combobox_open.png Entity select widget improvements 2011-07-18 14:47:57 -04:00
consume.png New icons for entitlement buttons 2011-07-25 14:02:39 -04:00
details.js Circular entity dependency 2011-10-18 16:19:06 -02:00
develop.js code review fixes 2011-03-31 17:29:33 -04:00
dialog.js Added confirmation when adding multiple entries. 2011-10-05 14:51:50 +02:00
dns.js Added confirmation when adding multiple entries. 2011-10-05 14:51:50 +02:00
entitle.js Ticket 1201 - Unable to Download Certificate with Browser 2011-10-21 15:29:47 +00:00
entity.js Circular entity dependency 2011-10-18 16:19:06 -02:00
facet-tab_off.png Tab and spacing on list 2011-06-23 19:29:50 +00:00
facet-tab_on.png Tab and spacing on list 2011-06-23 19:29:50 +00:00
favicon.ico favicon 2011-02-03 15:04:23 -05:00
firefox-icon.png Fixed links to images in config and migration pages 2011-10-06 23:24:12 -05:00
group.js Disables gid field if not posix group in group adder dialog 2011-10-06 13:14:51 +02:00
hbac.js Disable enroll button if nothing selected. 2011-09-29 16:57:19 +00:00
host.js Added confirmation when adding multiple entries. 2011-10-05 14:51:50 +02:00
hostgroup.js Replaced description text fields with text areas. 2011-09-26 16:38:21 +00:00
hover-tab.png Background images and tab hover 2011-05-11 14:50:10 -04:00
ie-icon.png Fixed links to images in config and migration pages 2011-10-06 23:24:12 -05:00
import.png New icons for entitlement buttons 2011-07-25 14:02:39 -04:00
index.html Renamed associate.js to association.js. 2011-06-16 11:12:42 -04:00
ipa.css Fixed: Duplicate CSS definitions 2011-10-19 10:44:44 -02:00
ipa.js Split Web UI initialization to several smaller calls 2011-10-09 23:32:55 -04:00
ipabanner.png split logo This allows for more flexilibity in customizing the site, as an end user can replace the logo, the banner or both 2011-02-22 17:12:24 -05:00
ipalogo.png split logo This allows for more flexilibity in customizing the site, as an end user can replace the logo, the banner or both 2011-02-22 17:12:24 -05:00
jquery-ui.css Fixed: Some widgets do not have space for validation error message 2011-09-29 16:57:37 +00:00
jquery-ui.js rename static to ui 2011-01-20 14:12:47 +00:00
jquery.ba-bbq.js rename static to ui 2011-01-20 14:12:47 +00:00
jquery.js Upgrade to jquery 1.5.2 https://fedorahosted.org/freeipa/ticket/768 2011-04-23 03:25:45 +00:00
jquery.ordered-map.js removing setters setup and init 2011-07-28 14:17:25 -04:00
jsl.conf Entity select widget improvements 2011-07-18 14:47:57 -04:00
json2.js rename static to ui 2011-01-20 14:12:47 +00:00
Mainnav-background.png Updated color scheme. 2011-09-28 14:07:07 +00:00
Mainnav-offtab.png Remove bright green from the tabs and subnav. 2011-02-17 14:24:15 -05:00
Mainnav-ontab.png Background images and tab hover 2011-05-11 14:50:10 -04:00
Makefile.am Fixed links to images in config and migration pages 2011-10-06 23:24:12 -05:00
modal-background.png Fixed broken links in ipa_error.css and ipa_migration.css. 2011-08-11 13:38:36 +00:00
nav-arrow.png Remove bright green from the tabs and subnav. 2011-02-17 14:24:15 -05:00
navigation.js Circular entity dependency 2011-10-18 16:19:06 -02:00
netgroup.js Replaced description text fields with text areas. 2011-09-26 16:38:21 +00:00
outer-bg.png Updated color scheme. 2011-09-28 14:07:07 +00:00
overpass_bold-web.eot Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_bold-web.svg Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_bold-web.ttf Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_bold-web.woff Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.eot Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.svg Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.ttf Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.woff Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
panel-background.png Fixed broken links in ipa_error.css and ipa_migration.css. 2011-08-11 13:38:36 +00:00
policy.js Added missing fields to password policy page 2011-10-10 18:50:34 -04:00
register.png New icons for entitlement buttons 2011-07-25 14:02:39 -04:00
remove-icon.png Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
reset-icon.png Facet icon swap and tab sizing 2011-06-23 19:30:00 +00:00
rule.js Fixed layout problem in permission adder dialog. 2011-09-09 19:47:05 +00:00
search-bg.png Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
search-icon.png Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
search.js Circular entity dependency 2011-10-18 16:19:06 -02:00
serverconfig.js Fixed missing default shell field. 2011-09-30 12:58:54 -05:00
service.js Added confirmation when adding multiple entries. 2011-10-05 14:51:50 +02:00
spinner_header.gif rename static to ui 2011-01-20 14:12:47 +00:00
spinner_small.gif rename static to ui 2011-01-20 14:12:47 +00:00
Static-Background.png Fixed broken links in ipa_error.css and ipa_migration.css. 2011-08-11 13:38:36 +00:00
Subnav-background.png Fixed broken links in ipa_error.css and ipa_migration.css. 2011-08-11 13:38:36 +00:00
sudo.js Fixed: Unable to add external user for RunAs User for Sudo rules 2011-10-17 14:01:16 -02:00
top-bg.png Updated color scheme. 2011-09-28 14:07:07 +00:00
ui-bg_flat_65_ffffff_40x100.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-bg_glass_40_111111_1x400.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-bg_glass_55_1c1c1c_1x400.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-bg_highlight-hard_40_aaaaaa_1x100.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-bg_highlight-hard_100_f9f9f9_1x100.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-bg_highlight-soft_50_aaaaaa_1x100.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-bg_inset-hard_45_cd0a0a_1x100.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-bg_inset-hard_55_ffeb80_1x100.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-bg_loop_8_333333_21x21.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-icons_4ca300_256x240.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-icons_222222_256x240.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-icons_bbbbbb_256x240.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-icons_ededed_256x240.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-icons_ffcf29_256x240.png rename static to ui 2011-01-20 14:12:47 +00:00
ui-icons_ffffff_256x240.png rename static to ui 2011-01-20 14:12:47 +00:00
update-icon.png Facet icon swap and tab sizing 2011-06-23 19:30:00 +00:00
user.js Disable enroll button if nothing selected. 2011-09-29 16:57:19 +00:00
webui.js Fix dynamic display of UI tabs based on rights 2011-10-12 23:19:54 -04:00
widget.js Disables gid field if not posix group in group adder dialog 2011-10-06 13:14:51 +02:00