From: George M. <ge...@no...> - 2008-03-25 17:54:17
|
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 Regards, George McCollister |