diff options
-rw-r--r-- | ipalib/x509.py | 1 | ||||
-rw-r--r-- | ipaserver/plugins/selfsign.py | 7 |
2 files changed, 2 insertions, 6 deletions
diff --git a/ipalib/x509.py b/ipalib/x509.py index bb765faad..4637e9f27 100644 --- a/ipalib/x509.py +++ b/ipalib/x509.py @@ -17,6 +17,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +import os import sys import base64 import nss.nss as nss diff --git a/ipaserver/plugins/selfsign.py b/ipaserver/plugins/selfsign.py index 67b8efef9..39d1c539f 100644 --- a/ipaserver/plugins/selfsign.py +++ b/ipaserver/plugins/selfsign.py @@ -208,12 +208,7 @@ class ra(rabase.rabase): try: # Grab the subject, reverse it, combine it and return it - sub = list(x509.get_subject_components(cert)) - sub.reverse() - subject = "" - for s in sub: - subject = subject + "%s=%s," % (s[0], s[1]) - subject = subject[:-1] + subject = x509.get_subject(cert) serial = x509.get_serial_number(cert) except error.PyAsn1Error, e: |