Compare commits
No commits in common. "d7ddd32f22123d934fd61f1bab882a9016762ca9" and "8311d9275c812afa8dfb7ee84ee32ce594d9767c" have entirely different histories.
d7ddd32f22
...
8311d9275c
20
README.md
20
README.md
|
@ -8,7 +8,7 @@ le-challenge-dns
|
|||
| [acme-v2.js](https://git.coolaj86.com/coolaj86/acme-v2.js)
|
||||
|
|
||||
|
||||
A manual (interactive CLI) dns-based strategy for greenlock.js for setting, retrieving,
|
||||
A manual (interactive CLI) dns-based strategy for node-letsencrypt for setting, retrieving,
|
||||
and clearing ACME DNS-01 challenges issued by the ACME server
|
||||
|
||||
Prints out a subdomain record for `_acme-challenge` with `keyAuthDigest`
|
||||
|
@ -31,16 +31,14 @@ npm install --save le-challenge-dns@2.x
|
|||
Usage
|
||||
-----
|
||||
|
||||
The challenge can be set globally like this:
|
||||
|
||||
```bash
|
||||
var leChallengeDns = require('le-challenge-dns').create({
|
||||
debug: false
|
||||
});
|
||||
|
||||
var Greenlock = require('greenlock');
|
||||
var LE = require('letsencrypt');
|
||||
|
||||
Greenlock.create({
|
||||
LE.create({
|
||||
server: LE.stagingServerUrl // Change to LE.productionServerUrl in production
|
||||
, challengeType: 'dns-01'
|
||||
, challenges: {
|
||||
|
@ -50,16 +48,6 @@ Greenlock.create({
|
|||
});
|
||||
```
|
||||
|
||||
In can also be set in the `approveDomains` callback instead, like this:
|
||||
|
||||
```
|
||||
function approveDomains(opts, certs, cb) {
|
||||
opts.challenges = { 'dns-01': leChallengeDns };
|
||||
...
|
||||
cb(null, { options: opts, certs: certs });
|
||||
}
|
||||
```
|
||||
|
||||
NOTE: If you request a certificate with 6 domains listed,
|
||||
it will require 6 individual challenges.
|
||||
|
||||
|
@ -74,7 +62,7 @@ For ACME Challenge:
|
|||
|
||||
Note: `get()` is a no-op for `dns-01`.
|
||||
|
||||
For greenlock.js internals:
|
||||
For node-letsencrypt 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "le-challenge-dns",
|
||||
"version": "2.3.1",
|
||||
"version": "2.3.0",
|
||||
"description": "A manual (interactive CLI) dns-based strategy for node-letsencrypt for setting, retrieving, and clearing ACME DNS-01 challenges issued by the ACME server",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in New Issue