Re: [Twisted-Python] transport.getPeerCertificate in connectionMade

2012-08-21 Thread Glyph
On Aug 21, 2012, at 6:20 AM, Phil Mayers wrote: > On 20/08/12 18:50, Glyph wrote: > >> Yup, it's a bug, reported 3 years ago: >> >> >> >> It's definitely a problem. Perhaps worse is the fact that startTLS() >> doesn't directly give you that notific

Re: [Twisted-Python] transport.getPeerCertificate in connectionMade

2012-08-21 Thread Phil Mayers
On 20/08/12 18:50, Glyph wrote: > Yup, it's a bug, reported 3 years ago: > > > > It's definitely a problem. Perhaps worse is the fact that startTLS() > doesn't directly give you that notification either. Please feel free > to contribute a fix :). Woul

Re: [Twisted-Python] transport.getPeerCertificate in connectionMade

2012-08-20 Thread Glyph
On Aug 20, 2012, at 4:52 AM, Phil Mayers wrote: > All, > > It's been my observation that this code: > > class MyProto(protocol.Protocol): > > def connectionMade(self): > print self.transport.getPeerCertificate() > self.transport.loseConnection() > > class MyFactory(protocol.ClientF

[Twisted-Python] transport.getPeerCertificate in connectionMade

2012-08-20 Thread Phil Mayers
All, It's been my observation that this code: class MyProto(protocol.Protocol): def connectionMade(self): print self.transport.getPeerCertificate() self.transport.loseConnection() class MyFactory(protocol.ClientFactory): def buildProtocol(self, addr): return MyProto() def