diff --git a/ipaserver/install/certs.py b/ipaserver/install/certs.py index 12d314e3e..f6b84ade9 100644 --- a/ipaserver/install/certs.py +++ b/ipaserver/install/certs.py @@ -322,7 +322,7 @@ class CertDB: ipautil.backup_file(cacert_fname) root_nicknames = self.find_root_cert(nickname)[:-1] with open(cacert_fname, "w") as f: - os.fchmod(f.fileno(), stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH) + os.fchmod(f.fileno(), 0o644) for root in root_nicknames: result = self.run_certutil(["-L", "-n", root, "-a"], capture_output=True) diff --git a/ipaserver/install/server/install.py b/ipaserver/install/server/install.py index 8c042f529..1eee9e7a9 100644 --- a/ipaserver/install/server/install.py +++ b/ipaserver/install/server/install.py @@ -904,9 +904,8 @@ def install(installer): ca.install_step_0(False, None, options, custodia=custodia) else: - # Put the CA cert where other instances expect it - x509.write_certificate(http_ca_cert, paths.IPA_CA_CRT) - os.chmod(paths.IPA_CA_CRT, 0o444) + # /etc/ipa/ca.crt is created as a side-effect of + # dsinstance::enable_ssl() via export_ca_cert() if not options.no_pkinit: x509.write_certificate(http_ca_cert, paths.KDC_CA_BUNDLE_PEM)