简体   繁体   English

使用C#以编程方式在客户端计算机中安装SSL证书

[英]install SSL Cert in client machine programmatically using C#

I've developed a Desktop application using c# which consume WCF on remote server over the internet i need to secure the communication between WCF Server and the Desktop Application (client) using SSL. 我已经使用c#开发了一个桌面应用程序,该应用程序通过Internet消耗远程服务器上的WCF,我需要使用SSL保护WCF服务器和桌面应用程序(客户端)之间的通信安全。 my question is how to install SSL in client machine automatically or by some Code when client installs my application. 我的问题是,当客户端安装我的应用程序时,如何在客户端计算机上自动或通过某些代码安装SSL。 thanks in advance . 提前致谢 。

What I understood from your above comments that you want to secure the data flowing b/w the channels. 从上面的评论中我了解到,您想保护通道之间的数据流。

This can be achieved through c# code - by including the *.cert file as a part of your project and passes in X509Certificate2 class .ctor. 这可以通过c#代码实现-通过将* .cert文件作为项目的一部分并传递到X509Certificate2类.ctor中。

for details, please refer to previous smiliar post - 有关详细信息,请参阅以前的辅助帖子-

Problem SSL Certificate C# 问题SSL证书C#

hope this helps you !! 希望这对您有帮助!

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

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