From: Jean-Paul C. <ex...@di...> - 2008-04-08 12:54:27
|
On Tue, 8 Apr 2008 14:50:57 +0200, Sebastian Vieira <seb...@gm...> wrote: >Hi, > >I posted this msg to the ml some weeks ago (before your announcement), but >maybe it's worth posting it again now that development is active again: > >-- begin original mail -- >Now all works up to the point that i want to add an X509 extension. The >'Basic Constraints' extension works fine, but when i add another (or replace >it) like this: > >extensions.append(crypto.X509Extension('basicConstraints',1, 'CA:true')) >extensions.append(crypto.X509Extension('nsComment', 0, 'OpenSSL Generated >Certificate')) >cert.add_extensions(extensions) > > >i get this error: > >ValueError: Can't initialize exception > >The same goes for > >extensions.append(crypto.X509Extension('subjectKeyIdentifier', 0, 'hash')) > > >and authorityKeyIdentifier >-- end -- > >thanks, > Thanks for following up on this. I noticed your earlier post and did a bit of investigation. One thing I learned is that there's a think-o in the exception message for this error case. It says ValueError: Can't initialize exception But the case which fails would really be better described by ValueError: Can't initialize extension Unfortunately, I didn't make much progress beyond this. However, I'm aware of the issue and I'll keep working on it. I don't know if a fix will make it into 0.7, but I hope that any known issue which isn't resolved in 0.7 will be resolved in 0.8. Jean-Paul |