2012-01-27 14 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使用证书以下资源:

而且,请注意,如果你使用的服务证书在代码进行一些检查,您必须跳过任何验证,因为验证不会通过自签名证书传递。