Deprecate service point for server certificate#4731
Deprecate service point for server certificate#4731aik-jahoda merged 7 commits intodotnet:masterfrom
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.
| 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.
| 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:
|
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