summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorJohn Dennis <jdennis@redhat.com>2010-01-19 17:06:06 -0500
committerRob Crittenden <rcritten@redhat.com>2010-01-19 17:28:40 -0500
commit30bc14a15ea9ad0962f386f1e97ef44657b80cdf (patch)
tree0c3dca2221e56b81ebd09ad2c759be4225e0ef01 /ipalib
parent8376979aa77877fd2cb4278eb6241198d7ebeda1 (diff)
downloadfreeipa-30bc14a15ea9ad0962f386f1e97ef44657b80cdf.tar.gz
freeipa-30bc14a15ea9ad0962f386f1e97ef44657b80cdf.tar.xz
freeipa-30bc14a15ea9ad0962f386f1e97ef44657b80cdf.zip
pass DER flag to x509.get_serial_number()
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/cert.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/cert.py b/ipalib/plugins/cert.py
index a22d0753e..312ad39b8 100644
--- a/ipalib/plugins/cert.py
+++ b/ipalib/plugins/cert.py
@@ -58,7 +58,7 @@ def get_serial(certificate):
pass
try:
- serial = x509.get_serial_number(certificate)
+ serial = x509.get_serial_number(certificate, x509.DER)
except PyAsn1Error:
raise errors.CertificateOperationError(error=_('Unable to decode certificate in entry'))