title: Why can't I get my Azure, WCF, REST, SSL project working? What am I doing wrong?
body: <p>I'm trying to get SSL, WCF and REST under Azure, but the page won't even load.</p>
  
  <p>Here are the steps I followed:</p>
  
  <p>1) I mapped the www.mydomain.com CNAME to my azuresite.cloudapp.net</p>
  
  <p>2) I procured an SSL certificate for www.mydomain.com and properly installed it at my azuresite.cloudapp.net hosted service project</p>
  
  <p>3) I deployed my WCF REST service to Azure and started it. Below is my web.config configuration.</p>
  
  <p>The http (non-https) binding version worked correctly. My service URL, http: //www.mydomain .com/service.svc/sessions worked just fine.</p>
  
  <p>When I deployed the project with the web.config below, enabling SSL, https: //www.mydomain .com/service.svc/sessions does not even pull up at all.</p>
  
  <p>What am I doing wrong?</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;services&gt;
          &lt;service name="Service"&gt;
                 &lt;!-- non-https worked just fine --&gt;
                 &lt;!--
                   &lt;endpoint address="" binding="webHttpBinding" contract="IService" behaviorConfiguration="RestFriendly"&gt;
                  &lt;/endpoint&gt;
                  --&gt;
              &lt;!-- This does not work, what am I doing wrong? --&gt;
              &lt;endpoint address="" binding="webHttpBinding" bindingConfiguration="TransportSecurity" contract="IService" behaviorConfiguration="RestFriendly"&gt;
              &lt;/endpoint&gt;
          &lt;/service&gt;
      &lt;/services&gt;
  
      &lt;behaviors&gt;
          &lt;endpointBehaviors&gt;
              &lt;behavior name="RestFriendly"&gt;
                  &lt;webHttp&gt;&lt;/webHttp&gt;
              &lt;/behavior&gt;
          &lt;/endpointBehaviors&gt;
      &lt;/behaviors&gt;
  
      &lt;bindings&gt;
          &lt;webHttpBinding&gt;
              &lt;binding name="TransportSecurity"&gt;
                  &lt;security mode="Transport"&gt;
                      &lt;transport clientCredentialType="None"/&gt;
                  &lt;/security&gt;
              &lt;/binding&gt;
          &lt;/webHttpBinding&gt;
      &lt;/bindings&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>