title: WCF Through HTTPS -> Proxy -> HTTP
body: <p>We have a solution that consists of a WCF webservice on one side and a smart client on the other side.</p>
  
  <p>Typically, we set up HTTPS on the webserver for the webservice so that communication between client and server happens over HTTPS. </p>
  
  <p>One of our customers however has a proxy server in between that strips incoming HTTPS request from their SSL payload and forwards a plain HTTP request to the webserver:</p>
  
  <p>Client > HTTPS > Proxy > HTTP > Webserver</p>
  
  <p>The problem is that we are using WsHttpBinding to allow us to communicate with WCF over SSL. Typically we use that binding both on client and server and there's no issue. </p>
  
  <p>But since the webservice actually receives an HTTP request, we cannot use WsHttpBinding (requires HTTPS). But we MUST use HTTPS from the client.</p>
  
  <p>But of course, WCF requires the bindings between client and server to match. So we're a bit stuck and I can't find a good way to solve this issue:</p>
  
  <ul>
  <li>We cannot set the client up to use HTTP for security reasons</li>
  <li>We can set the service to accept HTTP requests, BUT the client won't be able to communicate with it.</li>
  </ul>
  
  <p>Is there a certain setup that could cover this requirement?</p>