diff options
author | Jan Cholasta <jcholast@redhat.com> | 2014-06-12 13:26:34 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-07-30 16:04:21 +0200 |
commit | 6870eb909ec5a92dad79da62b4101d3f7f6a2abb (patch) | |
tree | 8eca2d9c374a9b4ef74684db67f173855ba3670a /ipaserver/install/installutils.py | |
parent | fd400588d78c50c79f64e7bc83e1cd367374a9f9 (diff) | |
download | freeipa-6870eb909ec5a92dad79da62b4101d3f7f6a2abb.tar.gz freeipa-6870eb909ec5a92dad79da62b4101d3f7f6a2abb.tar.xz freeipa-6870eb909ec5a92dad79da62b4101d3f7f6a2abb.zip |
Add function for writing list of certificates to a PEM file to ipalib.x509.
Also rename load_certificate_chain_from_file to
load_certificate_list_from_file.
Part of https://fedorahosted.org/freeipa/ticket/3259
Part of https://fedorahosted.org/freeipa/ticket/3520
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Diffstat (limited to 'ipaserver/install/installutils.py')
-rw-r--r-- | ipaserver/install/installutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index ab8f11d67..6ad7106b5 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -889,7 +889,7 @@ def validate_external_cert(cert_file, ca_file, subject_base): extchain = None try: - extchain = x509.load_certificate_chain_from_file(ca_file) + extchain = x509.load_certificate_list_from_file(ca_file) certdict = dict((DN(str(cert.subject)), DN(str(cert.issuer))) for cert in extchain) except IOError, e: |