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

Tue, Mar 21, 2017 One-minute read

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 [email protected] -ResourceGroup exampleResourceGroup -WebApp exampleWebApp
  4. Visit https://www.example.com

Done!