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.
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
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