Skip to content

vueplayground/acme-dns-01-domeneshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published