Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#3687 enhancement closed wontfix (wontfix)

calling getPeerCertificate in connectionMade returns None

Reported by: jrydberg Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:


When a SSL connection (either through listenSSL or connectSSL) has been established connectionMade is called before the actual SSL handshake has been conducted. This results in that getPeerCertificate() returns None.

connectionMade on the protocol should be called first when the handshake has been done.

Change History (3)

comment:1 Changed 11 years ago by Jean-Paul Calderone

Resolution: wontfix
Status: newclosed

Changing when connectionMade is called for SSL protocols has two problems.

First, it is a change in behavior of an existing API which might break existing applications relying on it.

Second, it leaves the protocol with no way to perform actions between the time the TCP connection is established and the time the handshake is complete.

I agree that it would be useful to get more information about progress of an SSL connection, but changing connectionMade isn't the way to do it.

comment:2 Changed 10 years ago by <automation>

Owner: Glyph deleted

comment:3 Changed 8 years ago by Glyph

See #6024.

Note: See TracTickets for help on using tickets.