[pyOpenSSL] Example for crypto.X509Extension

Christopher Kunz kunz at rvs.uni-hannover.de
Mon Jan 29 10:34:33 CET 2007


Hi,

I'm currently fiddling around with extending certificates with a custom X509
extension (identified by OID), but can't seem to get it working. When using an
OID for the first method argument to crypto.X509Extension, the error message is
"ValueError: Unknown extension name". Using a known extension name or OID (from
objects.h), the error message changes to "ValueError: Unknown extension".

>From looking into the source code to src/crypto/x509ext.c, it seems that the
second error message is triggered by the extension not having any methods (?).

Could somebody point me to more literature regarding X509 extensions in
pyOpenSSL and/or provide some working examples for this?

Thanks a lot,

--ck




More information about the pyopenssl-users mailing list