acme-dns-01-domeneshop

1.0.2 • Public • Published

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, // (optional)
            propagationDelay: 5000 // (optional)
        })
    }
})

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, // (optional)
            propagationDelay: 5000 // (optional)
        })
    }
})

See the ACME.js for more details.

Authors

  • Siglar Development AS

Readme

Keywords

none

Package Sidebar

Install

npm i acme-dns-01-domeneshop

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

5.02 kB

Total Files

3

Last publish

Collaborators

  • steffanhalv