diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-09-11 08:27:34 +0000 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-03-25 16:54:54 +0100 |
commit | fea7163e87ef7b2e46fa18dc77836ec9ee92ce02 (patch) | |
tree | 0d687ebd9cf6120beafad04efd86ff9b785caf8c /install/tools/ipa-server-install | |
parent | 4c761108e871ae029b5e1a16aaf35f9e78a3c02e (diff) | |
download | freeipa-fea7163e87ef7b2e46fa18dc77836ec9ee92ce02.tar.gz freeipa-fea7163e87ef7b2e46fa18dc77836ec9ee92ce02.tar.xz freeipa-fea7163e87ef7b2e46fa18dc77836ec9ee92ce02.zip |
Move CACERT definition to a single place.
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'install/tools/ipa-server-install')
-rwxr-xr-x | install/tools/ipa-server-install | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install index 7ca34e2cf..fa1396b49 100755 --- a/install/tools/ipa-server-install +++ b/install/tools/ipa-server-install @@ -72,6 +72,7 @@ from ipalib import api, errors, util, x509 from ipapython.config import IPAOptionParser from ipalib.x509 import load_certificate_from_file, load_certificate_chain_from_file from ipalib.util import validate_domain_name +from ipalib.constants import CACERT from ipapython import services as ipaservices from ipapython.ipa_log_manager import * from ipapython.dn import DN @@ -1101,7 +1102,7 @@ def main(): subject_base=options.subject) # Now put the CA cert where other instances exepct it - ca.publish_ca_cert("/etc/ipa/ca.crt") + ca.publish_ca_cert(CACERT) # we now need to enable ssl on the ds ds.enable_ssl() @@ -1129,7 +1130,7 @@ def main(): 'External CA cert', 'CT,,', options.root_ca_file) # Put a CA cert where other instances expect it - with open('/etc/ipa/ca.crt', 'wb') as f: + with open(CACERT, 'wb') as f: f.write(pem_cert) # Install the CA cert for the HTTP server |