简体   繁体   English

.NET Remoting SSL要求

[英].NET Remoting SSL requirement

I need to implement a remoting server in .NET C# and have the following requirements/restrictions for various reasons: 由于各种原因,我需要在.NET C#中实现远程服务器,并且具有以下要求/限制:

  • Use .NET remoting and NOT WCF 使用.NET远程处理而不是 WCF
  • NOT hosted in IIS 不在 IIS中托管

There is no restriction on the version of .NET framework though (can be 3.5 if need be). .NET框架的版本没有限制(如果需要,可以为3.5)。

BUT: The server needs to be serving using HTTPS . 但是:服务器需要使用HTTPS进行服务。 I know I can do .NET remoting outside IIS with HTTP but how can I do HTTPS with the above requirements? 我知道我可以使用HTTP在IIS外部进行.NET远程处理,但是如何满足上述要求进行HTTPS?

UPDATE: To clarify the requirements a bit further, I need to use SSL over any protocol for security reasons and port serve over port 80 for firewall reasons. 更新:为了进一步阐明要求,出于安全原因,我需要在任何协议上使用SSL,出于防火墙原因,需要在端口80上使用端口。 I also need the protocol to be HTTPS so the deep inspection of packets on the firewall doesn't block the traffic. 我还需要协议为HTTPS,以便对防火墙上的数据包进行深入检查不会阻止流量。 So using non-HTTP on port 80 is not quite the answer. 因此,在端口80上使用非HTTP并不是完全的答案。

To leverage .Net remoting IIS is not mandatory, over config file (or even programmaticaly ) you can specify tcp:// to start listen/response over any IP port. 要强制使用.Net远程IIS,在配置文件(甚至是programmaticaly)上,您可以指定tcp://以通过任何IP端口启动侦听/响应。 In this case you just need to resolve issue how server will available for clients. 在这种情况下,您只需要解决服务器如何可用于客户端的问题。

  • Create windows service 创建Windows服务
  • create console with infinite loop to handle incoming request. 创建带有无限循环的控制台以处理传入的请求。

IIS in case of remoting just works as service to host your dll, that is why you can replace it. 如果进行远程处理,IIS只能作为服务来托管您的dll,这就是为什么您可以替换它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM