Adding a Let’s Encrypt Certificate to an Azure-Hosted Website

If you host your website in Azure, you might be interested in adding SSL support via Let's Encrypt. Azure doesn't offer any functionality to automate this or make it easy, but thankfully there are plenty of useful tools in the PowerShell community to make this easy.

  1. ACMESharp - A PowerShell module to interact with Let's Encrypt.
  2. Azure PowerShell - A set of PowerShell modules to interact with Azure.

What's been missing (until now!) is the glue. So now, here's the glue: Register-LetsEncryptCertificate.ps1.

So the steps:

  1. Install-Module AcmeSharp, Azure, AzureRM.Websites
  2. Install-Script Register-LetsEncryptCertificate.ps1
  3. Register-LetsEncryptCertificate -Domain www.example.com -RegistrationEmail admin@example.com -ResourceGroup exampleResourceGroup -WebApp exampleWebApp
  4. Visit https://www.example.com

Done!

 

2 Responses to “Adding a Let’s Encrypt Certificate to an Azure-Hosted Website”

  1. Dew Drop - March 22, 2017 (#2445) - Morning Dew writes:

    […] Adding a Let’s Encrypt Certificate to an Azure-Hosted Website (Lee Holmes) […]

  2. Adding a Let’s Encrypt Certificate to an Azure-Hosted Website - .NET Development & News writes:

    […] HTTPS all the Things ! https://www.leeholmes.com/blog/2017/03/21/adding-a-lets-encrypt-certificate-to-an-azure-hosted-websi… […]

Leave a Reply