This commit is contained in:
AJ ONeal 2019-05-15 23:44:46 -06:00
rodzic 4ee2f81535
commit 19ae7f120c
2 zmienionych plików z 35 dodań i 18 usunięć

Wyświetl plik

@ -1,10 +1,11 @@
# [greenlock-challenge-http](https://git.coolaj86.com/coolaj86/greenlock-challenge-http.js) # [acme-http-01-cli](https://git.rootprojects.org/root/acme-http-01-cli.js) | a [Root](https://rootprojects.org) project
| A [Root](https://rootprojects.org) Project |
An extremely simple reference implementation An extremely simple reference implementation
of an ACME (Let's Encrypt) http-01 challenge strategy of an ACME (Let's Encrypt) http-01 challenge strategy.
for [Greenlock](https://git.coolaj86.com/coolaj86/greenlock-express.js) v2.7+ (and v3).
This generic implementation can be adapted to work with any node.js ACME client,
although it was built for [Greenlock](https://git.rootprojects.org/root/greenlock-express.js)
and [ACME.js](https://git.rootprojects.org/root/acme-v2.js).
``` ```
GET http://example.com/.well-known/acme-challenge/xxxxxxxxxxxxxxxx GET http://example.com/.well-known/acme-challenge/xxxxxxxxxxxxxxxx
@ -17,15 +18,15 @@ GET http://example.com/.well-known/acme-challenge/xxxxxxxxxxxxxxxx
Other ACME Challenge Reference Implementations: Other ACME Challenge Reference Implementations:
* [greenlock-challenge-manual](https://git.coolaj86.com/coolaj86/greenlock-challenge-manual.js.git) * [acme-http-01-fs](https://git.rootprojects.org/root/acme-http-01-webroot.js.git)
* [**greenlock-challenge-http**](https://git.coolaj86.com/coolaj86/greenlock-challenge-http.js.git) * [**acme-http-01-cli**](https://git.rootprojects.org/root/acme-http-01-cli.js.git)
* [greenlock-challenge-dns](https://git.coolaj86.com/coolaj86/greenlock-challenge-dns.js.git) * [acme-dns-01-cli](https://git.rootprojects.org/root/acme-dns-01-cli.js.git)
Install Install
------- -------
```bash ```bash
npm install --save greenlock-challenge-http@3.x npm install --save acme-http-01-cli@3.x
``` ```
Usage Usage
@ -36,9 +37,9 @@ var Greenlock = require('greenlock');
Greenlock.create({ Greenlock.create({
... ...
, challenges: { 'http-01': require('greenlock-challenge-http').create({ debug: true }) , challenges: { 'http-01': require('acme-http-01-cli').create({ debug: true })
, 'dns-01': require('greenlock-challenge-dns') , 'dns-01': require('acme-dns-01-cli')
, 'tls-alpn-01': require('greenlock-challenge-manual') , 'tls-alpn-01': require('acme-tls-alpn-01-cli')
} }
... ...
}); });
@ -91,3 +92,19 @@ it's not always implemented and the options are much more limited in scope:
} }
} }
``` ```
# Legal & Rules of the Road
Greenlock™ and Bluecrypt™ are [trademarks](https://rootprojects.org/legal/#trademark) of AJ ONeal
The rule of thumb is "attribute, but don't confuse". For example:
> Built with [Greenlock](https://git.rootprojects.org/root/greenlock.js) (a [Root](https://rootprojects.org) project).
Please [contact us](mailto:aj@therootcompany.com) if you have any questions in regards to our trademark,
attribution, and/or visible source policies. We want to build great software and a great community.
[Greenlock™](https://git.rootprojects.org/root/greenlock.js) |
MPL-2.0 |
[Terms of Use](https://therootcompany.com/legal/#terms) |
[Privacy Policy](https://therootcompany.com/legal/#privacy)

Wyświetl plik

@ -1,15 +1,15 @@
{ {
"name": "greenlock-challenge-http", "name": "acme-http-01-cli",
"version": "3.0.1", "version": "3.0.2",
"description": "A very simple reference implementation of an ACME http-01 challenge for Greenlock v2.7+ (and v3)", "description": "A very simple reference implementation of an ACME http-01 challenge for Greenlock v2.7+ (and v3)",
"main": "index.js", "main": "index.js",
"homepage": "https://git.coolaj86.com/coolaj86/greenlock-challenge-http.js", "homepage": "https://greenlock.domains/",
"scripts": { "scripts": {
"test": "node test.js" "test": "node test.js"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.coolaj86.com/coolaj86/greenlock-challenge-http.js.git" "url": "https://git.rootprojects.org/root/acme-http-01-cli.js.git"
}, },
"keywords": [ "keywords": [
"Let's Encrypt", "Let's Encrypt",
@ -20,9 +20,9 @@
"cli", "cli",
"commandline" "commandline"
], ],
"author": "AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com/)", "author": "AJ ONeal <solderjs@gmail.com> (https://solderjs.com/)",
"license": "MPL-2.0", "license": "MPL-2.0",
"bugs": { "bugs": {
"url": "https://git.coolaj86.com/coolaj86/greenlock-challenge-http.js/issues" "url": "https://git.rootprojects.org/root/acme-http-01-cli.js/issues"
} }
} }