[Twisted-Python] ISSLTransport.getPeerCertificate returning None?
exarkun at twistedmatrix.com
exarkun at twistedmatrix.com
Tue Dec 10 06:21:41 MST 2013
On 08:41 am, p.mayers at imperial.ac.uk wrote:
>On 09/12/13 22:19, Laurens Van Houtven wrote:
>>... but in the server's AMP protocol,
>>self.transport.getPeerCertificate() is still None :/
>
>Unless you set the appropriate verify options on the server side too,
>the client cert isn't available for inspection.
twisted.internet.ssl.CertificateOptions sets these by default. If you
use it, you shouldn't need to do anything else.
Jean-Paul
More information about the Twisted-Python
mailing list