From 18476c95384ef242923398bbf1985a002dcc87b6 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 25 Jun 2010 09:44:27 -0400 Subject: Use newer API in ipalib/x509 and add missing import. The import was only used when running the in-tree lite-server --- ipaserver/plugins/selfsign.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'ipaserver/plugins/selfsign.py') 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: -- cgit