加密 WCF 连接的其他方法 [英] Other ways to encrypt WCF Connections

查看:43
本文介绍了加密 WCF 连接的其他方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在处理一个需要在 WCF 主机之间传递加密数据的项目.据我了解,只有两种方法可以确保通过 WCF 传递的数据是安全的.

I'm currently working on a project that requires encrypted data be passed between WCF hosts. As I understand it there are only 2 ways to ensure that data passed over WCF is secure.

  1. 使用证书
  2. 使用域(或在网络上的每台机器上使用相同的用户名和密码)

使用证书可能很昂贵且管理起来很复杂,而且由于我们不能保证在每次部署时都有一台服务器类机器,因此域也不可能存在.如果需要更改密码,让每台机器使用相同的用户名和密码也是有问题的.

Using certificates can be expensive and complicated to manage and since we're not guaranteed to have a server class machine at every deployment a Domain is also out of the question. Having every machine use the same username and password is also problematic if that password ever needs to be changed.

目前我们使用 OpenSSH 在主机之间建立隧道连接.框架中是否还有我不知道的内置选项?

Currently we use OpenSSH to tunnel our connections between hosts. Is there another option built into the framework that I'm unaware of?

推荐答案

加密需要密钥.密钥通常作为证书实现.如果您拥有通信的双方,则可以免费创建自己的证书,而无需从受信任的根授权机构购买.

Encryption requires a key. Keys are usually implemented as certificates. If you own both sides of the communication, you can create your own certificate for free without having to go buy one from a trusted root authority.

这篇关于加密 WCF 连接的其他方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆