Printing x509.get_issuer().get_components causes an exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyOpenSSL |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The server is using a self signed certificate and the client does not trust it (loading certificate commented out). Thus the handshake will fail as it should.
But in addition, if VerifyCallback prints x509.get_
You can use for example x509.get_
I'm using
Python 2.6.1 (r261:67515, Jan 7 2009, 15:48:16)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
<module 'OpenSSL.version' from '/usr/local/
After creating the self signed server certificate at cert/server.pem (and possibly copying to cert/ca.pem) I call python server.py in one terminal and python client.py in another.
Source code attached.
Related branches
- Jean-Paul Calderone: Disapprove
- Diff: None lines
- rick_dean (community): Approve
- Diff: None lines
Changed in pyopenssl: | |
status: | New → Fix Committed |
Changed in pyopenssl: | |
milestone: | none → 0.10 |
Changed in pyopenssl: | |
status: | Fix Committed → Fix Released |
I have seen this bug as well. Sometime the failure has a different message of
python: Modules/ gcmodule. c:261: update_refs: Assertion `gc->gc.gc_refs != 0' failed.
but I think it's only after an exception. I also see seg faults.
Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38) 0.9.8g- 12.fc10. i686
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2
openssl-