简体   繁体   English

WCF 4-使用X.509证书进行传输和消息安全的TransportWithMessageCredential

[英]WCF 4 - TransportWithMessageCredential using X.509 certificates for transport and message security

I'm currently working on the same application as you described in the "WCF 4 - TransportWithMessageCredential using X.509 certificates for transport and message security" post. 我目前正在使用与“ WCF 4-使用X.509证书进行传输和消息安全的WCF 4- TransportWithMessageCredential ”中描述的应用程序相同的应用程序。 My question is: how to create service reference to the secured WCF Service in the VS10 client project? 我的问题是:如何在VS10客户端项目中创建对安全WCF服务的服务引用? When I provide client with the url of the running service it displays an error: 当我向客户端提供正在运行的服务的网址时,它将显示错误:

"There was an error downloading 'https://localhost:8832/Design_Time_Addresses...'. The underlying connection was closed: An unexpected error occurred on a send. Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host". “下载'https:// localhost:8832 / Design_Time_Addresses ...'时出错。基础连接已关闭:发送中发生意外错误。无法从传输连接中读取数据:现有连接已被强制关闭由远程主机”。

In your post you've mentioned "...made the corresponding svcutil.conf and ran svcutil that successfully made client proxy class and app.config for my test WinForms app". 在您的文章中,您提到“ ...制作了相应的svcutil.conf并运行了svcutil,成功为我的测试WinForms应用程序制作了客户端代理类和app.config。” What should svcutil.conf contain to be able to read from the secured wcf service? svcutil.conf应该包含哪些内容才能从安全的wcf服务读取?

WCF Service configured as this: WCF服务配置如下:

<security mode="TransportWithMessageCredential">

<transport clientCredentialType="Certificate"  />

<message clientCredentialType="Certificate"  />

Thanks in advance! 提前致谢!

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

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