【发布时间】:2011-04-29 02:16:10
【问题描述】:
嗨!
我有一个通过 TCP 运行的 WCF 服务,具有这样的证书安全性:
<binding name="netTcpUserNameMessageSecurity" portSharingEnabled="True" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="10" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<reliableSession ordered="true" inactivityTimeout="infinite" enabled="false" />
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="Windows" />
<message clientCredentialType="UserName" />
</security>
</binding>
在 TraceViewer 中检查日志时,我可以看到数据是清晰的 xml(未加密)。 TraceViewer 是解密数据还是我真的以明文 xml 发送所有数据,即使我使用证书安全性?
请注意,我在同一台机器上运行服务和客户端,我正在分析的日志来自服务。
最好的问候
【问题讨论】:
标签: .net wcf security certificate