Relative Content

Tag Archive for c#.netwindowsssl

How to add a ciphersuite to HttpClient in .net 7

I developed a Console app, in C# .NET 7, using the httpclient library, which consumes a restfull API whose methods are authenticated with a bearer token.
As this application is to be run on a Windows Server 2012 R2, I need some way to create a specific ciphersuite, which does not exist in this version of Windows.
These ciphers are a requirement of the TLS1.2 connection to the domain I am connecting to (TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 and TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384).
How can I build and integrate these ciphers into httpclient or what other library should I use?