简体   繁体   English

无法为Azure云服务设置通配符SSL

[英]Unable to Setup Wildcard SSL for Azure Cloud Service

I need to move an azure cloud service (not an azure website) from a single domain ssl to a wildcard ssl using Windows Azure SDK 2.1 with Visual Studio 2010 ASP.NET 4.0 application. 我需要使用带有Visual Studio 2010 ASP.NET 4.0应用程序的Windows Azure SDK 2.1将Azure云服务(不是Azure网站)从单个域ssl移到通配ssl。

Right now the application is using a CNAME record in dotster to map to the single ssl address to map from domain.com to myapp.cloudapp.net. 现在,该应用程序正在使用以点号表示的CNAME记录映射到单个ssl地址,以从domain.com映射到myapp.cloudapp.net。 It looks like A record is needed to map a wildcard ssl. 看起来需要一条记录来映射通配符ssl。 I was able to create a reserved ip of the current vip ip used by the cloud service. 我能够为云服务使用的当前VIP IP创建一个保留IP。 But when i went to add the <ReservedIP> element to the service configuration file 但是当我去添加<ReservedIP>元素到服务配置文件时

<NetworkConfiguration>
    <AddressAssignments>
      <ReservedIPs>
       <ReservedIP name="MyReservedIP"/>
      </ReservedIPs>
    </AddressAssignments>
  </NetworkConfiguration>

The visual studio 2010 ide says “The element 'ServiceDefinition' in namespace ' http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition ' has invalid child element 'Network Configuration' in namespace ' http://schemas.microsoft.com/ServiceHosting/2008/10/ '. visual studio 2010 ide说“名称空间' http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition '中的元素'ServiceDefinition'在名称空间' http:// schemas中具有无效的子元素'网络配置' 。 microsoft.com/ServiceHosting/2008/10/ '。 List of possible elements expected: 'WebRole, WorkerRole. 可能的元素列表:'WebRole,WorkerRole。 NetworkTrafficRules' in namespace ' http://schemas.microsoft.com/ServiceHosting/2008/10/ ' 名称空间“ http://schemas.microsoft.com/ServiceHosting/2008/10/ '中的NetworkTrafficRules”

How can I setup a wildcard ssl to the azure cloud service? 如何将通配符SSL设置到Azure云服务?

PS We need to stay with Azure Cloud Service and cannot use Azure Websites PS我们需要继续使用Azure云服务,并且不能使用Azure网站

Here's the entire ServiceDefinition.csdef file 这是整个ServiceDefinition.csdef文件

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="WindowsAzureProject1" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2013-03.2.0">
  <WebRole name=“MyWebsite vmsize="ExtraSmall">
    <Sites>
      <Site name="Web">
        <Bindings>
          <Binding name="Endpoint1" endpointName="Endpoint1" />
          <Binding name="Endpoint2" endpointName="Endpoint2" />
        </Bindings>
      </Site>
    </Sites>
    <ConfigurationSettings>
      <Setting name="AccountName" />
      <Setting name="AccountSharedKey" />
    </ConfigurationSettings>
    <Endpoints>
      <InputEndpoint name="Endpoint1" protocol="http" port="80" />
      <InputEndpoint name="Endpoint2" protocol="https" port="443" certificate=“MY-SSL" />
    </Endpoints>
    <Imports>
      <Import moduleName="Diagnostics" />
      <Import moduleName="RemoteAccess" />
      <Import moduleName="RemoteForwarder" />
    </Imports>
    <Certificates>
      <Certificate name=“MY-SSL" storeLocation="LocalMachine" storeName="My" />
      <Certificate name=“ROOT”-SSL storeLocation="LocalMachine" storeName="CA" />
    </Certificates>
    <Startup>
      <Task commandLine="startup\disableTimeout.cmd" executionContext="elevated" />
      <!--<Task commandLine="startup\NDP40-KB2624480-x64.exe /q" executionContext="elevated" />-->
    </Startup>
  </WebRole>
    <NetworkConfiguration>
        <AddressAssignments>
            <ReservedIPs>
                <ReservedIP name="MyReservedIP"/>
            </ReservedIPs>
        </AddressAssignments>
    </NetworkConfiguration>
</ServiceDefinition>

Just to check... Could you please clarify if the block you shared is wrapped in a "ServiceConfiguration" tag as shown below : 只是为了检查...您能否说明共享的块是否包装在“ ServiceConfiguration”标签中,如下所示:

<ServiceConfiguration>
 <NetworkConfiguration>
    <AddressAssignments>
      <ReservedIPs>
       <ReservedIP name="MyReservedIP"/>
      </ReservedIPs>
    </AddressAssignments>
  </NetworkConfiguration>
</ServiceConfiguration>

Our latest .NET Azure SDK is 2.8.1 . 我们最新的.NET Azure SDK是2.8.1。 I'm guessing that you are hitting to this issue because you are using Windows Azure SDK 2.1 . 我猜您正在解决此问题,因为您正在使用Windows Azure SDK 2.1。 Regarding this version, "Azure SDK for .NET 2.1 Release Notes" article in https://msdn.microsoft.com/en-us/library/azure/dn407359.aspx states that 关于此版本, https: //msdn.microsoft.com/zh-cn/library/azure/dn407359.aspx中的“ Azure SDK for .NET 2.1发行说明”文章指出:

Visual Studio 2010 Will Not Be Supported in Future Versions of the SDK SDK的将来版本将不支持Visual Studio 2010

We are providing advance notice that the Azure SDK for .NET 2.1 will be the last release of the SDK that will support Visual Studio 2010. The next release of the SDK will add support for Visual Studio 2013 and discontinue support for Visual Studio 2010. You can continue to use Visual Studio 2010 for projects that use Azure SDK for .NET versions 2.1 and earlier. 我们已经提前通知,适用于.NET 2.1的Azure SDK将是支持Visual Studio 2010的SDK的最新版本。SDK的下一版本将添加对Visual Studio 2013的支持,并停止对Visual Studio 2010的支持。可以继续将Visual Studio 2010用于使用适用于.NET 2.1及更早版本的Azure SDK的项目。

While version 2.1 of the SDK continues to support Visual Studio 2010, Visual Studio 2012, and Visual Studio 2013 Preview, we recommend that you upgrade your Visual Studio 2010 projects to Visual Studio 2012 or Visual Studio 2013 once this SDK is released. 虽然SDK的2.1版继续支持Visual Studio 2010,Visual Studio 2012和Visual Studio 2013 Preview,但我们建议您在发布此SDK后将Visual Studio 2010项目升级到Visual Studio 2012或Visual Studio 2013。 Upgrading your projects now will ensure that you are able to use the latest features of Azure when the next version of the SDK is released. 现在,升级项目将确保在发布下一版SDK时,您能够使用Azure的最新功能。

I will suggest you to start using Visual Studio 2015 and our latest SDK. 我建议您开始使用Visual Studio 2015和我们的最新SDK。 You can download Visual Studio 2015 Community Edition from https://www.visualstudio.com/ for free. 您可以从https://www.visualstudio.com/免费下载Visual Studio 2015 Community Edition。 You can download the .NET SDK for Visual Studio 2015 (or 2013) from https://azure.microsoft.com/en-us/downloads/ . 您可以从https://azure.microsoft.com/zh-cn/downloads/下载适用于Visual Studio 2015(或2013)的.NET SDK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM