How to enable HTTPS in WCF service

后端 未结 1 577
别那么骄傲
别那么骄傲 2020-12-19 11:54

I have hosted my service on IIS.

Hosted service has applied SSL certificate and on browse of URL, it appears with HTTPS.

But, when i do consume this URL into

相关标签:
1条回答
  • 2020-12-19 12:33

    Your binding has this:

    <security mode="None">
    

    Which means your service is not expecting to use security of any kind. HTTPS is transport authentication, so you need to set:

    <security mode="Transport">
    

    The following link includes useful information about setting up transport security in WCF: http://msdn.microsoft.com/en-us/library/ms733043(v=vs.110).aspx

    0 讨论(0)
提交回复
热议问题