Domeneshop + Let's Encrypt for Node.js
This handles ACME dns-01 challenges, compatible with ACME.js and Greenlock.js.
Install
npm i --s acme-dns-01-domeneshop
Generate Domeneshop API Token:
Usage
First you create an instance with your credentials:
import dns01 from 'acme-dns-01-domeneshop'
Then you can use it with any compatible ACME library,
such as Greenlock.js or ACME.js.
Greenlock.js
import Greenlock from 'greenlock-express'
const greenlock = Greenlock.create({
challenges: {
'dns-01': dns01({
domain,
token,
secret,
propagationTimeout: 3000,
propagationDelay: 5000
})
}
})
See Greenlock Express
and/or Greenlock.js
documentation for more details.
ACME.js
let pems = await acme.certificates.create({
account,
accountKey,
csr,
domains,
challenges: {
'dns-01': dns01({
domain: topLevelDomain,
token: provider?.key,
secret: provider?.secret,
propagationTimeout: 3000,
propagationDelay: 5000
})
}
})
See the ACME.js for more details.
Authors