Skip to content

a challenge plugin for node-greenlock(formerly node-letsencrypt) that uses DigitalOcean DNS challenges

Notifications You must be signed in to change notification settings

bmv437/le-challenge-digitalocean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

le-challenge-digitalocean

An automatic dns-based strategy for node-greenlock(formerly node-letsencrypt) for setting, retrieving, and clearing ACME DNS-01 challenges issued by the ACME server using the DigitalOcean api.

You'll need your DigitalOcean api key with write access. https://cloud.digitalocean.com/settings/api/tokens

Install

npm install --save [email protected]

Usage

var leChallengeDigitalOcean = require('le-challenge-digitalocean').create({
  debug: false,
  doApiKey: 'your-api-key'
});

var LE = require('greenlock');

LE.create({
  server: LE.stagingServerUrl,                               // Change to LE.productionServerUrl in production
  challengeType: 'dns-01',
  challenges: {
    'dns-01': leChallengeDigitalOcean
  }
});

Exposed Methods

For ACME Challenge:

  • set(opts, domain, challange, keyAuthorization, done)
  • get(defaults, domain, challenge, done)
  • remove(defaults, domain, challenge, done)

Note: get() is a no-op for dns-01.

For greenlock internals:

  • getOptions() returns the internal defaults merged with the user-supplied options
  • loopback(defaults, domain, challange, done) performs a dns lookup of the txt record

About

a challenge plugin for node-greenlock(formerly node-letsencrypt) that uses DigitalOcean DNS challenges

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published