Compare commits
No commits in common. "master" and "v3.0.1" have entirely different histories.
52
README.md
52
README.md
@ -30,25 +30,26 @@ Register and DuckDNS Domain and Save the API Token:
|
|||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
Then you can use this with any compatible ACME library,
|
First you create an instance with your credentials:
|
||||||
such as Greenlock.js or ACME.js.
|
|
||||||
|
|
||||||
### Greenlock CLI
|
|
||||||
|
|
||||||
```bash
|
|
||||||
npx greenlock defaults --challenge-dns-01 acme-dns-01-duckdns --challenge-dns-01-token xxxx
|
|
||||||
```
|
|
||||||
|
|
||||||
### Greenlock API
|
|
||||||
|
|
||||||
```js
|
```js
|
||||||
greenlock.manager.defaults({
|
var dns01 = require('acme-dns-01-duckdns').create({
|
||||||
|
baseUrl: 'https://www.duckdns.org/update', // default
|
||||||
|
token: 'xxxx'
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
Then you can use it with any compatible ACME library,
|
||||||
|
such as Greenlock.js or ACME.js.
|
||||||
|
|
||||||
|
### Greenlock.js
|
||||||
|
|
||||||
|
```js
|
||||||
|
var Greenlock = require('greenlock-express');
|
||||||
|
var greenlock = Greenlock.create({
|
||||||
challenges: {
|
challenges: {
|
||||||
'dns-01': {
|
'dns-01': dns01
|
||||||
module: 'acme-dns-01-duckdns',
|
// ...
|
||||||
baseUrl: 'https://www.duckdns.org/update', // default
|
|
||||||
token: 'xxxxxxx'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
@ -59,26 +60,11 @@ documentation for more details.
|
|||||||
|
|
||||||
### ACME.js
|
### ACME.js
|
||||||
|
|
||||||
First you create an instance with your credentials:
|
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var dns01 = require('acme-dns-01-duckdns').create({
|
// TODO
|
||||||
baseUrl: 'https://www.duckdns.org/update', // default
|
|
||||||
token: 'xxxx'
|
|
||||||
});
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
See the [ACME.js](https://git.rootprojects.org/root/acme-v2.js) for more details.
|
||||||
acme.certificates.create({
|
|
||||||
account,
|
|
||||||
accountKey,
|
|
||||||
csr,
|
|
||||||
domains,
|
|
||||||
challenges: { 'dns-01': dns01 }
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
See the [ACME.js](https://git.rootprojects.org/root/acme.js) for more details.
|
|
||||||
|
|
||||||
### Build your own
|
### Build your own
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user