summaryrefslogtreecommitdiffstats
path: root/ipaserver/install
diff options
context:
space:
mode:
Diffstat (limited to 'ipaserver/install')
-rw-r--r--ipaserver/install/httpinstance.py22
-rw-r--r--ipaserver/install/ipa_replica_prepare.py5
2 files changed, 16 insertions, 11 deletions
diff --git a/ipaserver/install/httpinstance.py b/ipaserver/install/httpinstance.py
index 375016262..14fa9cc6f 100644
--- a/ipaserver/install/httpinstance.py
+++ b/ipaserver/install/httpinstance.py
@@ -313,15 +313,19 @@ class HTTPInstance(service.Service):
pwd = pwdfile.read()
# Setup configure.jar
- tmpdir = tempfile.mkdtemp(prefix="tmp-")
- target_fname = '/usr/share/ipa/html/configure.jar'
- shutil.copy("/usr/share/ipa/html/preferences.html", tmpdir)
- db.run_signtool(["-k", "Signing-Cert",
- "-Z", target_fname,
- "-e", ".html", "-p", pwd,
- tmpdir])
- shutil.rmtree(tmpdir)
- os.chmod(target_fname, 0644)
+ if db.has_nickname('Signing-Cert'):
+ tmpdir = tempfile.mkdtemp(prefix="tmp-")
+ target_fname = '/usr/share/ipa/html/configure.jar'
+ shutil.copy("/usr/share/ipa/html/preferences.html", tmpdir)
+ db.run_signtool(["-k", "Signing-Cert",
+ "-Z", target_fname,
+ "-e", ".html", "-p", pwd,
+ tmpdir])
+ shutil.rmtree(tmpdir)
+ os.chmod(target_fname, 0644)
+ else:
+ root_logger.warning('Object-signing certificate was not found; '
+ 'therefore, configure.jar was not created.')
self.setup_firefox_extension(self.realm, self.domain, force=True)
diff --git a/ipaserver/install/ipa_replica_prepare.py b/ipaserver/install/ipa_replica_prepare.py
index b6b063332..f6af28e3a 100644
--- a/ipaserver/install/ipa_replica_prepare.py
+++ b/ipaserver/install/ipa_replica_prepare.py
@@ -338,8 +338,9 @@ class ReplicaPrepare(admintool.AdminTool):
self.copy_info_file("/usr/share/ipa/html/krb.js", "krb.js")
self.copy_info_file(
"/usr/share/ipa/html/kerberosauth.xpi", "kerberosauth.xpi")
- self.copy_info_file(
- "/usr/share/ipa/html/configure.jar", "configure.jar")
+ jar_filename = "/usr/share/ipa/html/configure.jar"
+ if ipautil.file_exists(jar_filename):
+ self.copy_info_file(jar_filename, "configure.jar")
cacert_filename = "/var/kerberos/krb5kdc/cacert.pem"
if ipautil.file_exists(cacert_filename):
self.copy_info_file(cacert_filename, "cacert.pem")