Does setting Security Mode = Transport automatically make it secure in a HTTPS web service?

╄→гoц情女王★ 提交于 2019-12-10 15:05:25

问题


I have a web service and we're currently hosting it in a HTTPS site.

My binding is this.

  <wsHttpBinding>
    <binding maxReceivedMessageSize="2000000" >
      <readerQuotas  maxStringContentLength="2147483647"   />
      <security mode="Transport">
      </security>
    </binding>
  </wsHttpBinding>

And it seems to work well. But my main aim is to make sure the web service requests and responses are encrypted. I don't know much about web services but is that all there is to it?

Just use HTTPS and put this line in your configuration?

  <security mode="Transport">
  </security>

Or is there more to it? How can I know if the message's sent are encrypted or not?


回答1:


Yes that's all. The mode Transport demands transport level security which in your case means HTTPS. If you want to see that messages are encrypted you must use some network monitoring tool (Fiddler, WireShark, etc.)



来源:https://stackoverflow.com/questions/6261093/does-setting-security-mode-transport-automatically-make-it-secure-in-a-https-w

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!