Greenlock/Acme.js plugin for Azure DNS
- Add a package to your dependencies
npm i acme-01-dns-azure
- Then use it in your project with greenlock:
greenlock
.manager
.defaults({
agreeToTerms: true,
subscriberEmail: '[email protected]',
challenges: {
'dns-01': {
module: 'acme-dns-01-azure',
clientId: process.env.AZURE_CLIENT_ID, // Your service principal application id
clientSecret: process.env.AZURE_CLIENT_SECRET, // Your service principal application secret
subscriptionId: process.env.AZURE_SUBSCRIPTION_ID, // Your tenant's subscription id,
azureDomain: process.env.AZURE_DOMAIN, // Your customized tenant domain (or tenant id if your tenant is not customized)
TTL: 60
}
}
})