summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/service.py
diff options
context:
space:
mode:
authorJohn Dennis <jdennis@redhat.com>2009-12-08 16:57:07 -0500
committerJason Gerard DeRose <jderose@redhat.com>2009-12-09 01:57:08 -0700
commitee909d871c56e55584ace7850ee3c6276ad58d06 (patch)
tree7df2f0be1a1d8af0b8f99576db8393056c581d50 /ipalib/plugins/service.py
parent62d40286ac67faa6b009e121035f92afa1372cf3 (diff)
downloadfreeipa-ee909d871c56e55584ace7850ee3c6276ad58d06.tar.gz
freeipa-ee909d871c56e55584ace7850ee3c6276ad58d06.tar.xz
freeipa-ee909d871c56e55584ace7850ee3c6276ad58d06.zip
rebase dogtag clean-up patch
Diffstat (limited to 'ipalib/plugins/service.py')
-rw-r--r--ipalib/plugins/service.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipalib/plugins/service.py b/ipalib/plugins/service.py
index 93b9e2b70..5b0119151 100644
--- a/ipalib/plugins/service.py
+++ b/ipalib/plugins/service.py
@@ -32,12 +32,13 @@ from pyasn1.error import PyAsn1Error
def get_serial(certificate):
"""
- Given a certificate, return the serial number in that cert.
+ Given a certificate, return the serial number in that
+ cert as a Python long object.
"""
if type(certificate) in (list, tuple):
certificate = certificate[0]
try:
- serial = str(x509.get_serial_number(certificate, type=x509.DER))
+ serial = x509.get_serial_number(certificate, type=x509.DER)
except PyAsn1Error:
raise errors.GenericError(
format='Unable to decode certificate in entry'