使用自托管 WCF 服务进行相互身份验证
我正在考虑创建一个 WCF 服务,该服务将连接到我们的产品管理系统以提供/更新产品许可信息。它将是一个封装在 NT 服务中的自托管服务,我正在寻找相互验证服务和客户端的方法。客户端将是与服务在同一台计算机上运行的桌面应用程序,因此我认为 netTCP 与传输安全性的绑定就足够了,但查看了文档后,我认为我只能实现 Windows 凭据安全性,这可能不会很好对我来说足够了。主要是我试图防止欺骗应用程序调用我们服务上的操作,并试图防止欺骗服务伪装成我们自己的服务。
有人可以给我任何建议吗?我有点担心我可能需要查看证书:干杯
,
克里斯。
I'm looking into creating a WCF service that will connect to our Product Management system to provide/update product licensing information. It will be a self hosting service wrapped up in an NT service and I'm looking at ways to mutually authenticate both the service and the client. Clients will be desktop applications running on the same machine as the service so I'm thought netTCP binding with Transport security would be sufficient but having looked at the documentation I think I can only achieve Windows credential security which probably isn't going to be good enough for me. Principally I'm trying to prevent spoof applications invoking operations on our service and also trying to prevent spoof services masquerading as our own.
Can anyone give me any suggestions? I'm a little concerned that I might have to look into certificates :S
Cheers,
Chris.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用证书(服务/客户端)进行相互身份验证。
请参阅 http://msdn.microsoft.com/en-us/library/ms733102。 ASPX
You can use certificates (service / client) to do mutual authN.
See http://msdn.microsoft.com/en-us/library/ms733102.aspx