Skip to content

ReferenceCountedOpenSslEngines SSLSession must provide local certific…#8918

Merged
normanmaurer merged 2 commits into4.1from
local_cert_during_verify
Mar 8, 2019
Merged

ReferenceCountedOpenSslEngines SSLSession must provide local certific…#8918
normanmaurer merged 2 commits into4.1from
local_cert_during_verify

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

…ates during certificate verification

Motivation:

The SSLSession that is returned by SSLEngine.getHandshakeSession() must be able to provide the local certificates when the TrustManager is invoked on the server-side.

Modifications:

  • Correctly return the local certificates
  • Add unit test

Result:

Be able to obtain local certificates from handshake SSLSession during verification on the server side.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ejona86 @flooey This also needs to be fixed in conscrypt.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@normanmaurer Can you be more specific about what behavior you see in Conscrypt and what you think it should be doing?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically what this PR fixes.

session.getLocalCertificates() and getLocalPrincipal() should not return null in the Trustmanager serverside. Check the included unit test

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, on the server. Sure, makes sense. Weird that we don't do that, I've filed google/conscrypt#634 to track fixing it.

@normanmaurer normanmaurer force-pushed the local_cert_during_verify branch from ea0af7b to 439c046 Compare March 5, 2019 12:52
…ates during certificate verification

Motivation:

The SSLSession that is returned by SSLEngine.getHandshakeSession() must be able to provide the local certificates when the TrustManager is invoked on the server-side.

Modifications:

- Correctly return the local certificates
- Add unit test

Result:

Be able to obtain local certificates from handshake SSLSession during verification on the server side.
@normanmaurer normanmaurer added this to the 4.1.34.Final milestone Mar 7, 2019
@normanmaurer normanmaurer merged commit 3e24e9f into 4.1 Mar 8, 2019
@normanmaurer normanmaurer deleted the local_cert_during_verify branch March 8, 2019 05:47
normanmaurer added a commit that referenced this pull request Mar 8, 2019
#8918)

Motivation:

The SSLSession that is returned by SSLEngine.getHandshakeSession() must be able to provide the local certificates when the TrustManager is invoked on the server-side.

Modifications:

- Correctly return the local certificates
- Add unit test

Result:

Be able to obtain local certificates from handshake SSLSession during verification on the server side.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants