Skip to content

William-LP/azure_dns_certbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure DNS Certbot

This docker image is a wrapper for the certbot-dns-azure library with the extra effort of shipping the certificate directly into an azure keyvault.

Why and how

This docker image allows you to dynamically register a certificate for a domain linked in your DNS zone and save it within a keyvault.

  • Creating a CSR in the keyvault
  • Retrieving the CSR
  • Sending CSR to the CA
  • Solving ACME dns challenge
  • Merging the certificate to keyvault

Usage

You must have a service principal with DNS Zone Contributor on your DNS zone and Create certificate permissions in your keyvault's access policies.

docker run \
    -e KV_NAME=<KEYVAULT NAME> \
    -e AZ_APP_ID=<APP ID> \
    -e AZ_APP_SECRET=<APP SECRET> \
    -e AZ_TENANT_ID=<AZ TENANT ID> \
    -e AZ_SUBSCRIPTION_ID=<AZ SUBSCRIPTION ID> \
    -e DOMAIN=<DOMAIN> \
    -e EMAIL=<EMAIL> \
    -e AZ_DNS_RG=<AZ DNS RG> \
    --rm ghcr.io/william-lp/azure_dns_certbot:main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages