设置安全模式=传输是否会自动使其在HTTPS Web服务中安全?

Dis*_*ive 5 security wcf .net-4.0 wcf-binding

我有一个Web服务,我们目前正在HTTPS站点中托管它.

我的约束力是这个.

  <wsHttpBinding>
    <binding maxReceivedMessageSize="2000000" >
      <readerQuotas  maxStringContentLength="2147483647"   />
      <security mode="Transport">
      </security>
    </binding>
  </wsHttpBinding>
Run Code Online (Sandbox Code Playgroud)

它似乎运作良好.但我的主要目标是确保Web服务请求和响应都是加密的.我对网络服务了解不多,但是它有什么用呢?

只需使用HTTPS并将此行放在您的配置中?

  <security mode="Transport">
  </security>
Run Code Online (Sandbox Code Playgroud)

或者还有更多吗?我怎么知道发送的邮件是否加密?

Lad*_*nka 9

是的,就是这样.该模式Transport需要传输级安全性,在您的情况下,这意味着HTTPS.如果你想看到消息是加密的,你必须使用一些网络监控工具(Fiddler,WireShark等)