Skip to content

Test client certificate request on renegotiation. #228

Closed

Description

@davidben

Filing this so we have something to reference. NativeCryptoTest.test_SSL_do_handshake_clientCertificateRequested_throws_after_renegotiate worked in the OpenSSL days, but BoringSSL does not support renegotiation on the server. But support is sadly still needed on some clients.

BoringSSL itself tests that the renegotiation works using a custom implementation in Go, so Conscrypt can probably rely on that for most things, but we would still like to test that the Conscrypt-level callbacks work. Integrating Go into Conscrypt is likely more trouble than is worth it, so I propose we write the dumbest possible renegotiating test server.

It can be as lazy or inefficient as we need it to be (use g in ECDH so the secret is just the peer public key, don't parse ClientHello and use hardcoded negotiated parameters, etc.), since its only purpose in life is to drive BoringSSL into the right state. It should not be too much effort with enough simplifications.

Activity

  1. nmittler commented on Jul 5, 2017

    @nmittler
    Contributor

    @davidben are we still planning on adding tests for renegotiation?

  2. davidben commented on Jul 5, 2017

    @davidben
    CollaboratorAuthor

    That's why I filed this bug, yes...

  3. added this to the 1.0.1 milestone on Jul 6, 2017
  4. nmittler commented on Aug 18, 2017

    @nmittler
    Contributor

    @flooey would you mind looking into this? This is apparently used by Android ... we have a hole in test coverage here.

  5. added 3 commits that reference this issue on Aug 31, 2017
    f49ed83
    4717fbb
    6dc0669
  6. added 2 commits that reference this issue on Sep 13, 2017
    047b527
    9267ec4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions