Basic X509V3 context support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyOpenSSL |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In some cases it is required to have an actual X509V3 context structure when adding some extensions (e.g. subjectKeyIdent
The attached patch, against the Bazaar revision 92, adds the OpenSSL.
Here's an example of how to use X509Context():
# Generate X509V3 context
ctx = crypto.
ctx.set_subject( ca_cert )
ctx.set_issuer( ca_cert )
# Generate extensions
extensions = []
extensions.append( crypto.
extensions.append( crypto.
ca_cert.
extensions = [ crypto.
ca_cert.
Related branches
- Jean-Paul Calderone: Pending requested
- 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 |
Hi Emmanuel,
Thanks for the patch. I've just started looking at it. It'll take me a little while to digest, but in the mean time, one thing I noticed is that the added files declare themselves to be copyright you, all rights reserved. Technically, I need you to license them to me, preferably under the MIT or BSD license, in order to be able to use them. I assume you'll be happy to do this, or you wouldn't have contributed the patch. :) But I need to check to make sure.