summaryrefslogtreecommitdiffstats
path: root/install/ui/certificate.js
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-01-06 01:18:48 -0600
committerEndi S. Dewata <edewata@redhat.com>2012-01-13 10:57:59 -0600
commitf56f8a34d39ba13403e7a693b639b6b37fcd0a04 (patch)
tree6503617f5530db7332f9434302dd56f2cf672eca /install/ui/certificate.js
parent3d1b864024255b97999f100d05c3bf63d99dacb5 (diff)
downloadfreeipa-f56f8a34d39ba13403e7a693b639b6b37fcd0a04.tar.gz
freeipa-f56f8a34d39ba13403e7a693b639b6b37fcd0a04.tar.xz
freeipa-f56f8a34d39ba13403e7a693b639b6b37fcd0a04.zip
Added instructions to generate CSR.
The certificate request dialog box has been modified to show the OpenSSL commands for generating a CSR. The realm and entry names in the test data have been fixed to be more consistent. Ticket #1012
Diffstat (limited to 'install/ui/certificate.js')
-rwxr-xr-xinstall/ui/certificate.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/install/ui/certificate.js b/install/ui/certificate.js
index 372edcdaa..70533c14d 100755
--- a/install/ui/certificate.js
+++ b/install/ui/certificate.js
@@ -437,8 +437,9 @@ IPA.cert.request_dialog = function(spec) {
var that = IPA.dialog(spec);
- that.width = spec.width || 500;
- that.height = spec.height || 400;
+ that.width = spec.width || 600;
+ that.height = spec.height || 450;
+ that.message = spec.message;
that.request = spec.request;
@@ -466,14 +467,11 @@ IPA.cert.request_dialog = function(spec) {
});
that.create = function() {
- that.container.append(IPA.messages.objects.cert.enter_csr+':');
- that.container.append('<br/>');
- that.container.append('<br/>');
+ that.container.append(that.message);
that.textarea = $('<textarea/>', {
style: 'width: 100%; height: 225px;'
}).appendTo(that.container);
-
};
return that;
@@ -829,8 +827,9 @@ IPA.cert.status_widget = function(spec) {
title = title.replace('${primary_key}', entity_name);
var dialog = IPA.cert.request_dialog({
- 'title': title,
- 'request': function(values) {
+ title: title,
+ message: that.request_message,
+ request: function(values) {
var request = values['request'];
IPA.command({