-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Deprecate service point for server certificate #4731
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
Deprecate service point for server certificate #4731
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
samples/snippets/csharp/VS_Snippets_Misc/system.net.http.httpclienthandler-secure/cs/program.cs
Outdated
Show resolved
Hide resolved
static async Task Main() | ||
{ | ||
// Create an HttpClientHandler object and set to use default credentials | ||
HttpClientHandler handler = new HttpClientHandler(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HttpClientHandler handler = new HttpClientHandler(); | |
var handler = new HttpClientHandler(); |
handler.ServerCertificateCustomValidationCallback = ServerCertificateCustomValidation; | ||
|
||
// Create an HttpClient object | ||
HttpClient client = new HttpClient(handler); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HttpClient client = new HttpClient(handler); | |
var client = new HttpClient(handler); |
samples/snippets/csharp/VS_Snippets_Misc/system.net.http.httpclienthandler-secure/cs/program.cs
Outdated
Show resolved
Hide resolved
samples/snippets/csharp/VS_Snippets_Misc/system.net.http.httpclienthandler-secure/cs/program.cs
Outdated
Show resolved
Hide resolved
samples/snippets/csharp/VS_Snippets_Misc/system.net.http.httpclienthandler-secure/cs/program.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Youssef Victor <31348972+Youssef1313@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Youssef Victor <31348972+Youssef1313@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
Docs Build status updates of commit e0a74f0:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo, otherwise LGTM!
Co-authored-by: Marie Píchová <11718369+ManickaP@users.noreply.github.com>
Docs Build status updates of commit ea0b715:
|
…jajahoda/servicepointcert
Service point no longer supports server certificate. This PR link to HttpClient including C# example
Partially fixes dotnet/runtime#33125
fixes dotnet/runtime#24773