From: George M. <ge...@no...> - 2008-03-25 22:18:07
|
It works now! Thanks for the quick fix. Regards, George McCollister Jean-Paul Calderone wrote: > On Tue, 25 Mar 2008 12:53:20 -0500, George McCollister <ge...@no...> wrote: > >> I'm using 0.7a1 and get_notBefore and get_notAfter seem to be broken. >> I've included some information below: >> >> Here is a snippet of my code: >> >> cert = load_certificate(FILETYPE_PEM, buf) >> #print type(cert) >> if cert: >> key = cert.get_pubkey() >> key_type = 'none' >> if key.type() == TYPE_RSA: >> key_type = 'RSA' >> elif key.type() == TYPE_DSA: >> key_type = 'DSA' >> subject = cert.get_subject() >> issuer = cert.get_issuer() >> >> expired = 'No' >> if cert.has_expired(): >> expired = 'Yes' >> >> notBefore = cert.get_notBefore() >> notAfter = cert.get_notAfter() >> >> Here is the error: >> [25/Mar/2008:17:40:28] HTTP Traceback (most recent call last): >> File "/usr/lib/python2.4/site-packages/cherrypy/_cprequest.py", line >> 551, in respond >> cherrypy.response.body = self.handler() >> File "/usr/lib/python2.4/site-packages/cherrypy/_cpdispatch.py", line >> 24, in __call__ >> return self.callable(*self.args, **self.kwargs) >> File "/opt/WebUI/ui.py", line 691, in ViewKey >> key=self.getkeyinfo(keyname + '.crt') >> File "/opt/WebUI/ui.py", line 882, in getkeyinfo >> notBefore = cert.get_notBefore() >> Error: [] >> >> System Information: >> linux 2.6.21.4 >> arch: armeb-xscale >> python 2.4.2 >> openssl-0.9.8f >> >> > > Thanks. I think I've fixed this. I just released 0.7a2, which includes > the fix. Could you check to see if it works for you? > > Jean-Paul > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > pyopenssl-list mailing list > pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyopenssl-list > |