Skip to content

Http/3 client certificates #35308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 13, 2021
Merged

Conversation

Tratcher
Copy link
Member

Contributes to #34858

They happy path works well, you can ask for a certificate, validate it, and consume it.

The unhappy path is very unhappy.

@Tratcher Tratcher requested review from JamesNK and wtgodbe August 12, 2021 21:44
@Tratcher Tratcher self-assigned this Aug 12, 2021
@ghost ghost added the area-runtime label Aug 12, 2021
Comment on lines +32 to +33
// httpsOptions.ClientCertificateMode = ClientCertificateMode.AllowCertificate;
// httpsOptions.AllowAnyClientCertificate();
Copy link
Member

Choose a reason for hiding this comment

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

remove?

Copy link
Member Author

Choose a reason for hiding this comment

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

I left them intentionally for anyone working with client certs.

{
httpsOptions.ServerCertificate = TestResources.GetTestCertificate();
httpsOptions.ClientCertificateMode = mode;
// httpsOptions.AllowAnyClientCertificate(); // The self-signed cert is invalid. Let it fail the default checks.
Copy link
Member

Choose a reason for hiding this comment

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

Meant to still be here?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is the only line that's different from the prior test so I wanted to call it out rather than delete it.

Comment on lines +9 to +10
// Console.WriteLine("Ready");
// Console.ReadKey();
Copy link
Member

Choose a reason for hiding this comment

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

Meant to still be here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, these are useful if you try to debug the Http3SampleApp. You either have to start the client first and then debug the server, or start both with debugging enabled on the server, and this pause lets you wait until the server is ready.

@Tratcher Tratcher enabled auto-merge (squash) August 12, 2021 23:15
@Tratcher Tratcher merged commit 5dc3a5c into dotnet:main Aug 13, 2021
@Tratcher Tratcher deleted the tratcher/h3/clientcerts branch August 13, 2021 00:26
@ghost ghost added this to the 6.0-rc1 milestone Aug 13, 2021
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants