Skip to content

Azure CDN does not provide free SSL certificates for root domains. This project aims to automate the provisioning and renewal of Let's Encrypt SSL certificates for Azure CDN root domains.

License

Notifications You must be signed in to change notification settings

flygcert/lets-encrypt-azure-cdn

 
 

Repository files navigation

Lets Encrypt for Azure CDN

Azure CDN provides free SSL certificates for all non-root/non-apex domains, but it does not provide free SSL certificates for root/apex domains like 'lalitadithya.com'. To get free SSL for root domains, we can make use of Let’s Encrypt, but we need to keep manually renewing the certificate every 3 months as there is no bot available that will take care of automatic renewal. This project aims to automate the provisioning and renewal of Let’s Encrypt SSL certificates for any domain on Azure CDN.

This project makes use of an Azure functions app that will add the necessary DNS records in Azure DNS for the ACME DNS challenge validation, and it will talk to the CDN to update/enable the SSL certificate. The certificate along with the ACME account information will be stored in an Azure key vault for safe keeping. The function will be triggered every day close to midnight.

Features

  1. Renewal of SSL certificates for more than one website
  2. Makes use of Azure Managed Identity – There is no need to hardcode any secrets in code
  3. Cheap to run – Will only cost less than 1 USD per month
  4. All secrets and certificates are stored and read from a key vault making it extra secure

About

Azure CDN does not provide free SSL certificates for root domains. This project aims to automate the provisioning and renewal of Let's Encrypt SSL certificates for Azure CDN root domains.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%