[Freeipa-devel] [PATCH] pass DER flag to x509.get_serial_number()

Rob Crittenden rcritten at redhat.com
Tue Jan 19 22:29:12 UTC 2010


John Dennis wrote:
> From: jdennis <jdennis at vm-041.idm.lab.bos.redhat.com>
> 
> ---
>  ipalib/plugins/cert.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/ipalib/plugins/cert.py b/ipalib/plugins/cert.py
> index a22d075..312ad39 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'))
>  

ack, pushed to master




More information about the Freeipa-devel mailing list