Bug 796295
Summary: | cannot decode Basic Constraints | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Rob Crittenden <rcritten> |
Component: | python-nss | Assignee: | John Dennis <jdennis> |
Status: | CLOSED ERRATA | QA Contact: | Patrik Kis <pkis> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | CC: | dcantrell, dpal, jdennis, pkis |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-nss-0.13 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 796293 | Environment: | |
Last Closed: | 2013-02-21 10:11:57 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 796293 | ||
Bug Blocks: | 747991, 791327 |
Description
Rob Crittenden
2012-02-22 16:12:46 UTC
Fails differently in RHEL 6.2, may be due to older version in RHEL. $ python cert_dump.py /etc/ipa/ca.crt certificate filename=/etc/ipa/ca.crt Certificate: Data: Version: 3 (0x2) Serial Number: 1000 (0x3e8) Signature Algorithm: Traceback (most recent call last): File "cert_dump.py", line 171, in <module> print nss.indented_format(cert.signature_algorithm.format_lines(3)) AttributeError: 'nss.nss.SignatureAlgorithm' object has no attribute 'format_lines' The format specifier for PyArg_ParseTupleAndKeywords in BasicConstraints_init()
was wrong, instead of "O|i" it should have been "O!", looks like it was a
cut-n-paste bug.
< if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|i:BasicConstraints",
kwlist,
---
> if (!PyArg_ParseTupleAndKeywords(args, kwds, "O!:BasicConstraints", kwlist,
As for SignatureAlgorithm not having a format_lines method, that's due to version skew between the example code and the library, that was a change between 0.11 and 0.12, RHEL6 is still back at 0.11. That difference will not affect your use of
BasicConstaints.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0405.html |