2012-01-27 15 views
0

我使用IIS創建本地證書,我將此證書添加到Azure項目中。 當我在本地調試(https://127.0.0.1:444)我的服務工作得很好。Azure和SSL在分段中不起作用

但是,當我將項目發佈到Azure Staging(https:// a7a9e6ab * * .cloudapp.net /)時,我的服務不起作用?

我的web.config

<system.serviceModel> 
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"> 
</serviceHostingEnvironment> 
<bindings> 
    <basicHttpBinding> 
    <binding name="DefaultBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"> 
     <readerQuotas maxDepth="50" maxArrayLength="2147483647" maxStringContentLength="2147483647" /> 
     <security mode="TransportWithMessageCredential"> 
     <message clientCredentialType="UserName" /> 
     <transport clientCredentialType="None" proxyCredentialType="None" /> 
     </security> 
    </binding> 
    <binding name="DefaultSecuredBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"> 
     <readerQuotas maxDepth="50" maxArrayLength="2147483647" maxStringContentLength="2147483647" /> 
     <security mode="TransportWithMessageCredential"> 
     <message clientCredentialType="UserName" /> 
     <transport clientCredentialType="None" proxyCredentialType="None" /> 
     </security> 
    </binding> 
    </basicHttpBinding> 
</bindings> 
<behaviors> 
    <serviceBehaviors> 
    <behavior name="DefaultServiceBehavior"> 
     <serviceMetadata httpsGetEnabled="true" /> 
     <serviceDebug includeExceptionDetailInFaults="true" /> 
     <serviceCredentials> 
     <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="nVentive.Umbrella.Services.UserNamePasswordValidator, nVentive.Umbrella.Services" /> 
     </serviceCredentials> 
    </behavior> 
    </serviceBehaviors> 
</behaviors> 

+0

'錯誤:找不到水晶球。換句話說,你是什麼意思,「不起作用」?它究竟如何*與預期會發生什麼不同?任何錯誤?警告?他們說什麼? – Piskvor 2012-01-27 17:57:10

+0

我沒有錯,因爲這個原因我請求幫助。 – Benjamin 2012-01-27 18:05:16

+0

而在Windows Azure與https我不能使用提琴手,我注意到我的用戶donesn't日誌 – Benjamin 2012-01-27 18:05:46

回答

1

你有上傳您的服務證書,以在Windows Azure託管服務?您的服務很可能不起作用,因爲您沒有上傳證書。請檢查有關如何使用Windows Azure使用證書以下資源:

而且,請注意,如果你使用的服務證書在代碼進行一些檢查,您必須跳過任何驗證,因爲驗證不會通過自簽名證書傳遞。