C#程序我创建在.NET Framework 4.8上使用openssl吗?

huangapple go评论58阅读模式
英文:

Does the C# program I created on .NET framework 4.8 use openssl?

问题

I developed a client that calls Rest API with C# (.NET framework 4.8).

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL);

The server's HTTPS certificate encryption suite uses ECDHE-RSA-AES128-GCM-SHA256.

I want to know which library my client uses for actual SSL communication.

I just use the HttpWebRequest class of C#.

In this case, do I use the openssl built into the window?

I looked it up and found a module called SChannel in Windows.
I'm not sure if I actually use openssl or channel or anything else.
Does anyone know about this?

It seems that Java implements SSL through something called JSSE. I searched if there was such a thing in C#.

英文:

I developed a client that calls Rest API with C# (.NET framework 4.8)

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL);

The server's HTTPS certificate encryption suite uses ECDHE-RSA-AES128-GCM-SHA256.

I want to know which library my client uses for actual SSL communication.

I just use the HttpWebRequest class of C#.

In this case, do I use the openssl built into the window?

I looked it up and found a module called SChannel in Windows.
I'm not sure if I actually use openssl or channel or anything else.
Does anyone know about this?

It seems that java implements ssl through something called jsse. I searched if there was such a thing in c#.

答案1

得分: 2

以下是引自Microsoft的“使用.NET Framework的传输层安全(TLS)最佳实践”的引用:

你的应用的网络连接经过Schannel(也是安全通道的另一个名称)。通过配置Schannel,你可以配置你的应用的行为。

Schannel SSP实现了TLS、DTLS和SSL协议的不同版本。不同的Windows版本支持不同的协议版本。

所以,HttpWebRequest类使用了Windows内置的SChannel安全协议。

英文:

Here is quote from "Transport Layer Security (TLS) best practices with the .NET Framework" from Microsoft:

> Your app's networking goes through Schannel (which is another name for Secure Channel. By configuring Schannel, you can configure your app's behavior.

> The Schannel SSP implements versions of the TLS, DTLS and SSL protocols. Different Windows versions support different protocol versions.

So, HttpWebRequest class uses the Windows built-in SChannel security protocol.

huangapple
  • 本文由 发表于 2023年2月19日 21:12:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/75500378.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定