From: Sebastian G. <seb...@gm...> - 2008-09-20 10:55:43
|
As part of my verification I'm trying to retrieve the email embedded in the certificate. However it returns None I'm using the code below where _verify is the callback pass as the second argument to the set_verify method of a context object. Judging from this, http://89.150.104.27/~snot/certificate.PNG, screenshot it seems like I need to get the second certificate in the certificate hierarchy. but how do I access it? 31 def _verify(self, conn, cert, errno, depth, retcode): <snip /> 38 print cert.get_issuer().emailAddress 39 self.accessRights.read = True 40 self.accessRights.write = True 41 return retcode Best regards, Seb |