mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use newer API in ipalib/x509 and add missing import.
The import was only used when running the in-tree lite-server
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import base64
|
import base64
|
||||||
import nss.nss as nss
|
import nss.nss as nss
|
||||||
|
|||||||
@@ -208,12 +208,7 @@ class ra(rabase.rabase):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Grab the subject, reverse it, combine it and return it
|
# Grab the subject, reverse it, combine it and return it
|
||||||
sub = list(x509.get_subject_components(cert))
|
subject = x509.get_subject(cert)
|
||||||
sub.reverse()
|
|
||||||
subject = ""
|
|
||||||
for s in sub:
|
|
||||||
subject = subject + "%s=%s," % (s[0], s[1])
|
|
||||||
subject = subject[:-1]
|
|
||||||
|
|
||||||
serial = x509.get_serial_number(cert)
|
serial = x509.get_serial_number(cert)
|
||||||
except error.PyAsn1Error, e:
|
except error.PyAsn1Error, e:
|
||||||
|
|||||||
Reference in New Issue
Block a user