From: Sebastian G. <seb...@gm...> - 2008-09-20 11:19:17
|
Get_subject was the key to it, not get_issuer. ofcourse J Best regards, Seb Fra: Sebastian Greatful [mailto:seb...@gm...] Sendt: 20. september 2008 12:55 Til: pyo...@li... Emne: Getting the next cert in hierarchy 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 |