From: Jean-Paul C. <ex...@di...> - 2008-03-25 19:45:15
|
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 |