Bug 1250611
| Summary: | SSLContext.load_cert_chain() keyfile argument can't be set to None | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Christian Heimes <cheimes> |
| Component: | python | Assignee: | Robert Kuska <rkuska> |
| Status: | CLOSED ERRATA | QA Contact: | Branislav NĂ¡ter <bnater> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.2 | CC: | edewata, florian, isenfeld, jberan, mstuchli, rkuska, spoore |
| Target Milestone: | rc | Keywords: | TestBlocker |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | python-2.7.5-31.el7 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: load_cert_chain couldn't accept None as a argument for keyfile
Consequence: function would fail with error TypeError: coercing to Unicode: need string or buffer, NoneType found
Fix: make function load_cert_chain accept None as a keyfile argument
Result: load_cert_chain now accepts None as a keyfile argument
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-19 12:43:31 UTC | Type: | Bug |
| 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: | |||
| Bug Blocks: | 1248675 | ||
|
Description
Christian Heimes
2015-08-05 14:49:42 UTC
FYI, I just tested on an IPA server. It looks like this issues I was seeing are resolved. [root@master ~]# rpm -q python python-2.7.5-31.el7.x86_64 [root@master ~]# python Python 2.7.5 (default, Aug 6 2015, 10:12:10) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import ssl >>> ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)internal error has >>> ctx.load_cert_chain('/does/not/exist', None) Traceback (most recent call last): File "<stdin>", line 1, in <module> IOError: [Errno 2] No such file or directory >>> ctx.load_cert_chain('/does/not/exist') Traceback (most recent call last): File "<stdin>", line 1, in <module> IOError: [Errno 2] No such file or directory >>> And the actual place I was seeing the issue on IPA: [root@master ~]# ipa vault-add MyVault01 --password=Secret123 ----------------------- Added vault "MyVault01" ----------------------- Vault name: MyVault01 Type: standard Owner users: admin Previously I was seeing the internal error as shown in the IPA bug this was blocking. Thanks, Scott 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. https://rhn.redhat.com/errata/RHSA-2015-2101.html |