Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat are the steps to setup SSL to work with WCF on Azure?
    text
    copied!<p>Please post the steps you have taken to setup SSL to work with WCF on Azure.</p> <p>I have my <a href="http://msdn.microsoft.com/en-us/library/dd203056.aspx" rel="noreferrer">valid certificate uploaded</a> successfully (<a href="http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/53b54dbc-0408-47c3-9479-9155aa1693cc/" rel="noreferrer">using cspack</a>) and working with the rest of the site, but after adding it, my previously working WCF service stopped working. (All I get is a 404 error back to Silverlight, which is not very helpful. Up votes to whomever comes up with some better logging I could be doing too to help diagnose the problem too!)</p> <p>I've tried many variations on this configuration:</p> <pre><code>&lt;system.serviceModel&gt; &lt;!--start added for SSL--&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="SecureBasicHttpBinding"&gt; &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="None" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;!--end added for SSL--&gt; &lt;behaviors&gt; &lt;!--start added for SSL--&gt; &lt;endpointBehaviors&gt; &lt;behavior name="DisableServiceCertificateValidation"&gt; &lt;clientCredentials&gt; &lt;serviceCertificate&gt; &lt;authentication certificateValidationMode="None" revocationMode="NoCheck" /&gt; &lt;/serviceCertificate&gt; &lt;/clientCredentials&gt; &lt;/behavior&gt; &lt;/endpointBehaviors&gt; &lt;!--start added for SSL--&gt; &lt;serviceBehaviors&gt; &lt;behavior name="Silverheat.Cloud_WebRole.API.DataServiceBehavior"&gt; &lt;serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /&gt; &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt; &lt;!-- certificate checking removed --&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" /&gt; &lt;services&gt; &lt;service behaviorConfiguration="Silverheat.Cloud_WebRole.API.DataServiceBehavior" name="Silverheat.Cloud_WebRole.API.DataService"&gt; &lt;!--&lt;endpoint address="" binding="basicHttpBinding" contract="Silverheat.Cloud_WebRole.API.DataService" /&gt;--&gt; &lt;endpoint bindingConfiguration="SecureBasicHttpBinding" behaviorConfiguration="DisableServiceCertificateValidation" address="" binding="basicHttpBinding" contract="Silverheat.Cloud_WebRole.API.DataService" /&gt; &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;/system.serviceModel&gt; </code></pre> <p>Unfortunately, debugging this and getting more info is really hard because I cannot step through and debug with any configuration remotely like I'd use on the live server because the <a href="http://social.msdn.microsoft.com/Forums/en/windowsazure/thread/d69b7c6f-5648-417a-a379-23b0f012c4aa/" rel="noreferrer">bindings tag has problems</a> on debug (but not live).</p> <p>Thanks for your help and interest!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload