diff options
Diffstat (limited to 'ipalib/x509.py')
-rw-r--r-- | ipalib/x509.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/x509.py b/ipalib/x509.py index 84c1acfc..f8a13577 100644 --- a/ipalib/x509.py +++ b/ipalib/x509.py @@ -195,7 +195,8 @@ def normalize_certificate(rawcert): serial = unicode(get_serial_number(dercert, DER)) except NSPRError, nsprerr: if nsprerr.errno == -8183: # SEC_ERROR_BAD_DER - raise errors.CertificateFormatError(error='improperly formatted DER-encoded certificate') + raise errors.CertificateFormatError( + error=_('improperly formatted DER-encoded certificate')) else: raise errors.CertificateFormatError(error=str(nsprerr)) |