[Twisted-Python] Detect SSL transport and get remote peer certificate in tcp.Server

Phil Mayers p.mayers at imperial.ac.uk
Wed Jun 13 08:20:30 EDT 2012

On 13/06/12 12:15, exarkun at twistedmatrix.com wrote:

> Heh. :)  Instead, use `transport.getPeerCertificate()`.
> `getPeerCertificate` is a method specified by `ISSLTransport`.

I've run into some oddities which this method call before; IIRC you have 
to setup the context in a very particular way to even SEE client 
certificates, regardless of whether the client sends them?

More information about the Twisted-Python mailing list