在 Azure Web 应用程序中为客户添加自定义域并自动添加让我们加密证书
Add custom domain for customer in azure web app and add let's encript certificate automatically
我们提供的服务可帮助本地企业在 Google 或 Facebook 等平台上收集更多评论。每个客户都有一个自己的站点,由我们托管。但从技术上讲,它在 one Azure Web App 上运行。例如,每个客户都有一个 url,如下所示:https://portal.your-voting.com/freds-bike-shop. We want go give our customers the opportunity to configure their own domain in the backend. For example : https://review.freds-bike.shop。此外,来自 Let's Encript for Azure 的 SSL 证书应该适用于自定义域。
如何以编程方式为我的 Azure Web 应用程序添加自定义域?
我如何自动获取并安装客户域的 Let's Encript 证书?
目前我们使用 Let's Encript 站点扩展和 C# als 编程语言。
How do i programmatically add custom domains for my azure web app?
您可以利用 Azure Management Libraries for .NET and follow Getting Started with App - Manage Web App With Domain Ssl - in .Net 将自定义域名绑定到 Web 应用程序,如下所示:
app1.Update()
.DefineHostnameBinding()
.WithThirdPartyDomain("{yourdomain.com}")
.WithSubDomain("{your-subdomain}")
.WithDnsRecordType(CustomHostNameDnsRecordType.CName)
.Attach()
.Apply();
How do i automatically get and install the Let's Encrypt certificates for the customer domains?
这是使用 Let's Encrypt 证书对 Azure Web 应用程序使用 powershell 自动化的类似方法,您可以 here about the CreateLetsEncryptWebApp.ps1 通过以下步骤获得详细信息:
a) create an Azure Web App
b) generate a certificate from Let's Encrypt
c) bind the certificate to the Web App with a custom domain name
要使用 Let's Encript Site Extension,您需要注册一个 Azure AD 应用程序并配置相关的 Web 应用程序设置,详情请参考 here。
我们提供的服务可帮助本地企业在 Google 或 Facebook 等平台上收集更多评论。每个客户都有一个自己的站点,由我们托管。但从技术上讲,它在 one Azure Web App 上运行。例如,每个客户都有一个 url,如下所示:https://portal.your-voting.com/freds-bike-shop. We want go give our customers the opportunity to configure their own domain in the backend. For example : https://review.freds-bike.shop。此外,来自 Let's Encript for Azure 的 SSL 证书应该适用于自定义域。
如何以编程方式为我的 Azure Web 应用程序添加自定义域? 我如何自动获取并安装客户域的 Let's Encript 证书?
目前我们使用 Let's Encript 站点扩展和 C# als 编程语言。
How do i programmatically add custom domains for my azure web app?
您可以利用 Azure Management Libraries for .NET and follow Getting Started with App - Manage Web App With Domain Ssl - in .Net 将自定义域名绑定到 Web 应用程序,如下所示:
app1.Update()
.DefineHostnameBinding()
.WithThirdPartyDomain("{yourdomain.com}")
.WithSubDomain("{your-subdomain}")
.WithDnsRecordType(CustomHostNameDnsRecordType.CName)
.Attach()
.Apply();
How do i automatically get and install the Let's Encrypt certificates for the customer domains?
这是使用 Let's Encrypt 证书对 Azure Web 应用程序使用 powershell 自动化的类似方法,您可以 here about the CreateLetsEncryptWebApp.ps1 通过以下步骤获得详细信息:
a) create an Azure Web App
b) generate a certificate from Let's Encrypt
c) bind the certificate to the Web App with a custom domain name
要使用 Let's Encript Site Extension,您需要注册一个 Azure AD 应用程序并配置相关的 Web 应用程序设置,详情请参考 here。