Opened 5 years ago

Closed 5 years ago

Last modified 2 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:
Author: Launchpad Bug:

Description

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 5 years ago by exarkun

  • Resolution set to wontfix
  • Status changed from new to closed

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 4 years ago by <automation>

  • Owner glyph deleted

comment:3 Changed 2 years ago by glyph

See #6024.

Note: See TracTickets for help on using tickets.