From e1d34638adb1cc3374f3abe491014df0e3453d37 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 14 Aug 2012 14:30:36 -0400 Subject: Convert PKCS#11 subject to string before passing to ipapython.DN --- ipaserver/plugins/selfsign.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipaserver/plugins') diff --git a/ipaserver/plugins/selfsign.py b/ipaserver/plugins/selfsign.py index 09ed04f49..bd79f7186 100644 --- a/ipaserver/plugins/selfsign.py +++ b/ipaserver/plugins/selfsign.py @@ -92,7 +92,7 @@ class ra(rabase.rabase): subject_base.insert(0, RDN(('CN', hostname))) request = pkcs10.load_certificate_request(csr) # python-nss normalizes the request subject - request_subject = DN(pkcs10.get_subject(request)) + request_subject = DN(str(pkcs10.get_subject(request))) if subject_base != request_subject: raise errors.CertificateOperationError(error=_('Request subject "%(request_subject)s" does not match the form "%(subject_base)s"') % \ -- cgit