roster-server 1.9.8 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/index.js +1 -1
  2. package/package.json +4 -3
  3. package/skills/roster-server/SKILL.md +6 -9
  4. package/vendor/greenlock-express/.prettierrc +7 -0
  5. package/vendor/greenlock-express/LICENSE +375 -0
  6. package/vendor/greenlock-express/README.md +536 -0
  7. package/vendor/greenlock-express/WALKTHROUGH.md +256 -0
  8. package/vendor/greenlock-express/config.js +20 -0
  9. package/vendor/greenlock-express/demo.js +35 -0
  10. package/vendor/greenlock-express/examples/cluster/package.json +12 -0
  11. package/vendor/greenlock-express/examples/express/my-express-app.js +17 -0
  12. package/vendor/greenlock-express/examples/express/package.json +12 -0
  13. package/vendor/greenlock-express/examples/http/package.json +12 -0
  14. package/vendor/greenlock-express/examples/http-proxy/package.json +12 -0
  15. package/vendor/greenlock-express/examples/http2/package.json +12 -0
  16. package/vendor/greenlock-express/examples/https/package.json +12 -0
  17. package/vendor/greenlock-express/examples/quickstart/README.md +22 -0
  18. package/vendor/greenlock-express/examples/quickstart/package.json +12 -0
  19. package/vendor/greenlock-express/examples/socket.io/package.json +12 -0
  20. package/vendor/greenlock-express/examples/websockets/package.json +12 -0
  21. package/vendor/greenlock-express/greenlock-express.js +48 -0
  22. package/vendor/greenlock-express/greenlock-shim.js +72 -0
  23. package/vendor/greenlock-express/http-middleware.js +154 -0
  24. package/vendor/greenlock-express/https-middleware.js +139 -0
  25. package/vendor/greenlock-express/install.sh +14 -0
  26. package/vendor/greenlock-express/lib/compat.js +37 -0
  27. package/vendor/greenlock-express/main.js +32 -0
  28. package/vendor/greenlock-express/master.js +164 -0
  29. package/vendor/greenlock-express/package-lock.json +149 -0
  30. package/vendor/greenlock-express/package.json +51 -0
  31. package/vendor/greenlock-express/scripts/postinstall +77 -0
  32. package/vendor/greenlock-express/servers.js +171 -0
  33. package/vendor/greenlock-express/single.js +36 -0
  34. package/vendor/greenlock-express/sni.js +215 -0
  35. package/vendor/greenlock-express/worker.js +73 -0
@@ -0,0 +1,536 @@
1
+ # [Greenlock Express v4](https://git.rootprojects.org/root/greenlock-express.js) is Let's Encrypt for Node
2
+
3
+ | Built by [Root](https://therootcompany.com) for [Hub](https://rootprojects.org/hub/) |
4
+
5
+ ![Greenlock Logo](https://git.rootprojects.org/root/greenlock.js/raw/branch/master/logo/greenlock-1063x250.png "Greenlock Logo")
6
+
7
+ ### Free SSL for Node Web Servers
8
+
9
+ Greenlock Express is a **Web Server** with **Fully Automated HTTPS** and renewals.
10
+
11
+ You define your app and let Greenlock handle issuing and renewing Free SSL Certificates.
12
+
13
+ ```bash
14
+ npm init
15
+ npm install --save greenlock-express@v4
16
+ ```
17
+
18
+ `server.js`:
19
+
20
+ ```js
21
+ "use strict";
22
+
23
+ var app = require("./app.js");
24
+
25
+ require("greenlock-express")
26
+ .init({
27
+ packageRoot: __dirname,
28
+ configDir: "./greenlock.d",
29
+
30
+ // contact for security and critical bug notices
31
+ maintainerEmail: "jon@example.com",
32
+
33
+ // whether or not to run at cloudscale
34
+ cluster: false
35
+ })
36
+ // Serves on 80 and 443
37
+ // Get's SSL certificates magically!
38
+ .serve(app);
39
+ ```
40
+
41
+ `./greenlock.d/config.json`:
42
+
43
+ ```json
44
+ { "sites": [{ "subject": "example.com", "altnames": ["example.com"] }] }
45
+ ```
46
+
47
+ # Let's Encrypt for...
48
+
49
+ - IoT
50
+ - Enterprise On-Prem
51
+ - Local Development
52
+ - Home Servers
53
+ - Quitting Heroku
54
+
55
+ # Features
56
+
57
+ - [x] Let's Encrypt v2 (November 2019)
58
+ - [x] ACME Protocol (RFC 8555)
59
+ - [x] HTTP Validation (HTTP-01)
60
+ - [x] DNS Validation (DNS-01)
61
+ - [ ] ALPN Validation (TLS-ALPN-01)
62
+ - Need ALPN validation? [contact us](mailto:greenlock-support@therootcompany.com)
63
+ - [x] Automated HTTPS
64
+ - [x] Fully Automatic Renewals every 45 days
65
+ - [x] Free SSL
66
+ - [x] **Wildcard** SSL
67
+ - [x] **Localhost** certificates
68
+ - [x] HTTPS-enabled Secure **WebSockets** (`wss://`)
69
+ - [x] **Cloud-ready** with Node `cluster`.
70
+ - [x] Fully customizable
71
+ - [x] **Reasonable defaults**
72
+ - [x] Domain Management
73
+ - [x] Key and Certificate Management
74
+ - [x] ACME Challenge Plugins
75
+
76
+ # Compatibility
77
+
78
+ Works with _any_ node http app, including
79
+
80
+ - [x] Express
81
+ - [x] Koa
82
+ - [x] hapi
83
+ - [x] rill
84
+ - [x] http2
85
+ - [x] cluster
86
+ - [x] etc...
87
+
88
+ # v4 QuickStart
89
+
90
+ Serving sites with Free SSL is as easy as 1, 2, 3... 4
91
+
92
+ ## Overview
93
+
94
+ 1. Create a Project with Greenlock Express
95
+ - `server.js`
96
+ - `app.js`
97
+ 2. Setup the config file (or database)
98
+ - `.greenlockrc`
99
+ - `greenlock.d/config.json`
100
+ 3. Add Domains
101
+ - `npx greenlock add --subject example.com --altnames example.com`
102
+ 4. Hello, World!
103
+ - `npm start -- --staging`
104
+
105
+ ### TL;DR
106
+
107
+ If you're familiar with node, npm, and npx: this is all you need to do:
108
+
109
+ ```bash
110
+ npm init
111
+ npm install --save greenlock-express@v4
112
+
113
+ npx greenlock init --config-dir greenlock.d --maintainer-email jon@example.com
114
+ npx greenlock add --subject example.com --altnames example.com
115
+
116
+ npm start -- --staging
117
+ ```
118
+
119
+ Once you've tested that that works, you can change `app.js` to suit your needs replace the built-in callbacks for things like certificate storage as you like.
120
+
121
+ ## 1. Create your Project
122
+
123
+ If you need to install Node.js, do so:
124
+
125
+ Mac, Linux:
126
+
127
+ ```bash
128
+ curl -fsS https://webinstall.dev/node | bash
129
+ ```
130
+
131
+ Windows 10:
132
+
133
+ ```pwsh
134
+ curl -fsSA "MS" https://webinstall.dev/node | powershell
135
+ ```
136
+
137
+ Then create a directory for your project, and initialize it:
138
+
139
+ ```bash
140
+ mkdir -p my-sites
141
+ pushd my-sites
142
+ npm init
143
+ npm install --save greenlock-express@v4
144
+ ```
145
+
146
+ ## 2. Initialize and Config (Dir or DB)
147
+
148
+ You can use **local file storage** or a **database**. The default is to use file storage.
149
+
150
+ You'll need to create `server.js` and `greenlock.d/config.json`. You can do so using the CLI, API, or by hand.
151
+
152
+ ### Using the CLI (simplest, recommended)
153
+
154
+ Anytime you install an npm module that contains an executable,
155
+ you can run it using `npx`.
156
+
157
+ To initialize the Greenlock config, run `npx greenlock init`:
158
+
159
+ ```bash
160
+ npx greenlock init --config-dir ./greenlock.d --maintainer-email 'jon@example.com'
161
+ ```
162
+
163
+ ### By Hand (for advanced users)
164
+
165
+ Create `server.js` like so:
166
+
167
+ `server.js`:
168
+
169
+ ```js
170
+ 'use strict';
171
+
172
+ var app = require('./app.js');
173
+
174
+ require('greenlock-express')
175
+ .init({
176
+ packageRoot: __dirname,
177
+
178
+ // where to look for configuration
179
+ configDir: './greenlock.d',
180
+
181
+ // whether or not to run at cloudscale
182
+ cluster: false
183
+ })
184
+ // Serves on 80 and 443
185
+ // Get's SSL certificates magically!
186
+ .serve(app);
187
+ ```
188
+
189
+ Create `app.js` like so:
190
+
191
+ `app.js`:
192
+
193
+ ```js
194
+ 'use strict';
195
+
196
+ // Here's a vanilla HTTP app to start,
197
+ // but feel free to replace it with Express, Koa, etc
198
+ var app = function(req, res) {
199
+ res.end('Hello, Encrypted World!');
200
+ };
201
+
202
+ module.exports = app;
203
+ ```
204
+
205
+ Greenlock uses `.greenlockrc` to figure out whether to use the file system or a database for config,
206
+ as well as where its root directory is.
207
+
208
+ `.greenlockrc`
209
+
210
+ ```json
211
+ {"manager":{"module":"@greenlock/manager"},"configDir":"greenlock.d"}
212
+ ```
213
+
214
+ The `greenlock.d/config.json` is NOT intended to be edited by hand, as it is a substitute for a database, but it looks like this:
215
+
216
+ ```json
217
+ { "defaults": { "subscriberEmail": "john.doe@example.com" }, "sites": [] }
218
+ ```
219
+
220
+ ## 3. Add Sites
221
+
222
+ For security, you must specify which sites you allow to request certificates. If you need this to be dynamic (i.e. checking a database or API, see the section below on custom site managers).
223
+
224
+ Every site has a "subject" (its primary domain name) and one or more "altnames" (secondary or related domain names on the same certificate).
225
+
226
+ ### Using CLI (simple, recommended)
227
+
228
+ Simply supply the names of sites that you manage and they will be added to the file system config, or database.
229
+
230
+ ```bash
231
+ npx greenlock add --subject example.com --altnames example.com,www.example.com
232
+ ```
233
+
234
+ ### By Hand (debugging only)
235
+
236
+ You should NOT edit `greenlock.d/config.json` with your own tools. Use `greenlock.manager.add({})` instead.
237
+
238
+ `greenlock.d/config.json`:
239
+
240
+ <!-- TODO update manager to write array rather than object -->
241
+
242
+ ```json
243
+ { "sites": [{ "subject": "example.com", "altnames": [ "example.com", "www.example.com" ] }] }
244
+ ```
245
+
246
+ ## 4. Hello, Encrypted World!
247
+
248
+ That was it! Now you can run your server!
249
+
250
+ When you run `npm start`, it will automatically run `node server.js` (or `package.json.scripts.start`).
251
+
252
+ For arguments that `npm start` should ignore, place them after `--`.
253
+
254
+ Here we use `--staging` in order to tell greenlock to issue test certificates rather than real certificates.
255
+
256
+ ```bash
257
+ # Note: you can use npm start to run server.js with the --staging flag set
258
+ npm start -- --staging
259
+ ```
260
+
261
+ ```txt
262
+ > my-project@1.0.0 start /srv/www/my-project
263
+ > node server.js
264
+
265
+ Listening on 0.0.0.0:80 for ACME challenges and HTTPS redirects
266
+ Listening on 0.0.0.0:443 for secure traffic
267
+ ```
268
+
269
+ If everything worked you can visit your site in your browser, and after a few seconds you'll get a certificate warning and, after that, see a "Hello World" message. The debug (staging) certificates will be saved in `greenlock.d/staging`. Run again without `--staging` and you will get real certificates.
270
+
271
+ ### Season to taste
272
+
273
+ Now you're ready to update `app.js` with your code. For example, try this next:
274
+
275
+ ```bash
276
+ npm install --save express
277
+ mkdir -p public
278
+ echo '<h1>Hello!</h1>' >> public/index.html
279
+ ```
280
+
281
+ `app.js`:
282
+
283
+ ```js
284
+ 'use strict';
285
+
286
+ var path = require('path');
287
+ var express = require('express');
288
+ var app = express();
289
+
290
+ app.get('/', express.static(path.join(__dirname, "public")));
291
+
292
+ module.exports = app;
293
+
294
+ // for development and debugging
295
+ if (require.main === module) {
296
+ require('http').createServer(app).listen(3000, function () {
297
+ console.info("Listening for HTTP on", this.address());
298
+ });
299
+ }
300
+ ```
301
+
302
+ # Walkthrough
303
+
304
+ For a more detail read the full
305
+ [WALKTHROUGH](https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/WALKTHROUGH.md).
306
+
307
+ # Examples
308
+
309
+ To see all of the examples, just browse [greenlock-express.js/examples/](https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples)
310
+
311
+ | Example | Location + Description |
312
+ | :--------------------: | :----------------------------------------------------------------------------------------------------------------------------------------- |
313
+ | Express | [./examples/express/][ex-express] how to export an express app |
314
+ | Node's **http2** | [./examples/http2/][ex-http2] how to use Node's built-in http2 server |
315
+ | Node's https | [./examples/https][ex-https] how to customize the https server |
316
+ | **WebSockets** | [./examples/websockets/][ex-websockets] how to use `on('upgrade')` |
317
+ | <span>Socket.IO</span> | [./examples/socket.io][ex-socketio] how to overcomplicate a persistent connection |
318
+ | Cluster | [./examples/cluster/][ex-cluster] how to use Node's built-in clustering with master and worker processes |
319
+ | **Wildcards** | [coming someday][ex-wildcards] (ask to help create this) how to use DNS-01 for wildcard certs |
320
+ | **Localhost** | [coming someday][ex-localhost] (ask to help create this) how to use DNS-01 for domains that resolve to private networks, such as 127.0.0.1 |
321
+ | **CI/CD** | [coming someday][ex-cicd] (ask to help create this) how to use the `--staging` environment for test deployments |
322
+ | HTTP Proxy | [examples/http-proxy][ex-http-proxy] how to (reverse) proxy decrypted traffic to another server |
323
+ | - | Build your own<br>Be sure to tell me about it (open an issue) |
324
+
325
+ [ex-express]: https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/express/
326
+ [ex-http2]: https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/http2/
327
+ [ex-https]: https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/https/
328
+ [ex-websockets]: https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/websockets/
329
+ [ex-socketio]: https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/socketo.io/
330
+ [ex-cluster]: https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/cluster/
331
+ [ex-wildcards]: https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/wildcards/
332
+ [ex-localhost]: https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/localhost/
333
+ [ex-cicd]: https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/ci-cd/
334
+ [ex-http-proxy]: https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/http-proxy/
335
+
336
+
337
+ # FAQ
338
+ ## 1. But did YOU read the QuickStart?
339
+
340
+ 99% of the questions I get are answered in the QuickStart, or in the Examples.
341
+
342
+ Before you go into your specific use case, just try out the QuickStart from start to finish so that you can see that the default setup works, you get feel for the "lay of the land", and you know what to edit.
343
+
344
+ ## 2. How to use JavaScript configuration?
345
+
346
+ You don't. It's JSON on purpose.
347
+
348
+ The configuration has to be serializable (i.e. could go in a database).
349
+
350
+ The config file is meant for **simple** use cases, for the average dev and it is managed with `npx greenlock ...`, as shown in the QuickStart.
351
+
352
+ If you have a **dynamic** or **advanced** use case (i.e. you need stuff in a database, or to change config on-the-fly), you can use the Greenlock API (not Greenlock Express) and you'll love it.
353
+
354
+ If you're layering a lot of **complexity** with dev ops tools, but you don't really understand the tools that well (i.e. **Docker**), either use ENVIRONMENT variables or put the `npx greenlock ...` commands in your setup script. You MUST use a database for **lambda** "cloud functions" and such.
355
+
356
+ You can also just mangle the Greenlock API to do what you want... but I don't recommend it. Keep it simple and your future self with thank you.
357
+
358
+ General rule of thumb: commit code, not data / config.
359
+
360
+ ## 3. How to use non-standard ports (not 80, 443)?
361
+
362
+ You don't. Not usually.
363
+
364
+ Let's Encrypt **REQUIRES port 80** for HTTP-01 challenges.
365
+
366
+ But if you're using DNS-01 or you have a proxy in place, just use the raw node server. See these examples:
367
+
368
+ - [examples/http/server.js](https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/http/server.js)
369
+ - [examples/https/server.js](https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/https/server.js)
370
+
371
+ If you want to use Greenlock as a proxy, see this example:
372
+
373
+ - [examples/http-proxy/server.js](https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/http-proxy/server.js)
374
+
375
+ # Troubleshooting
376
+
377
+ ### What if the example didn't work?
378
+
379
+ Double check the following:
380
+
381
+ - **Public Facing IP** for `http-01` challenges
382
+ - Are you running this _as_ a public-facing webserver (good)? or localhost (bad)?
383
+ - Does `ifconfig` show a public address (good)? or a private one - 10.x, 192.168.x, etc (bad)?
384
+ - If you're on a non-public server, are you using the `dns-01` challenge?
385
+ - **valid email**
386
+ - You MUST set `maintainerEmail` to a **valid address**
387
+ - MX records must validate (`dig MX example.com` for `'john@example.com'`)
388
+ - **valid DNS records**
389
+ - Must have public DNS records (test with `dig +trace A example.com; dig +trace www.example.com` for `[ 'example.com', 'www.example.com' ]`)
390
+ - **write access**
391
+ - You MUST set `configDir` to a writeable location (test with `touch ./greenlock.d/config.json`)
392
+ - **port binding privileges**
393
+ - You MUST be able to bind to ports 80 and 443
394
+ - You can do this via `sudo` or [`setcap`](https://gist.github.com/firstdoit/6389682)
395
+ - **API limits**
396
+ - You MUST NOT exceed the API [**usage limits**](https://letsencrypt.org/docs/staging-environment/) per domain, certificate, IP address, etc
397
+ - **Red Lock, Untrusted**
398
+ - You MUST switch from `npm start -- --staging` to `npm start` to use the **production** server
399
+ - The API URL should not have 'acme-staging-v02', but should have 'acme-v02'
400
+
401
+ # Using a Database, S3, etc
402
+
403
+ If you have a small site, the default file storage will work well for you.
404
+
405
+ If you have many sites with many users, you'll probably want to store config in a database of some sort.
406
+
407
+ See the section on **Custom** callbacks and plugins below.
408
+
409
+ # Advanced Configuration
410
+
411
+ All of the advanced configuration is done by replacing the default behavior with callbacks.
412
+
413
+ You can whip up your own, or you can use something that's published to npm.
414
+
415
+ See the section on **Custom** callbacks and plugins below.
416
+
417
+ # Easy to Customize
418
+
419
+ <!-- greenlock-manager-test => greenlock-manager-custom -->
420
+
421
+ <!--
422
+ - [greenlock.js/examples/](https://git.rootprojects.org/root/greenlock.js/src/branch/master/examples)
423
+ -->
424
+
425
+ - [Custom Domain Management](https://git.rootprojects.org/root/greenlock-manager-test.js)
426
+ - edit `server.js` and/or `.greenlockrc` to switch from the default `configDir` manager to your config system or database
427
+ - CLI example: `npx greenlock init --manager ./path-or-npm-name.js --manager-FOO 'set option FOO'`
428
+ - [Custom Key & Cert Storage](https://git.rootprojects.org/root/greenlock-store-test.js)
429
+ - edit the `defaults` section of `greenlock.d/config.json` to change the certificate store or database
430
+ - CLI example: `npx greenlock defaults --store greenlock-store-fs --store-base-path ./greenlock.d`
431
+ - [Custom ACME HTTP-01 Challenges](https://git.rootprojects.org/root/acme-http-01-test.js)
432
+ - edit the `defaults` section of `greenlock.d/config.json` to change the challenges by hand
433
+ - CLI example: `npx greenlock defaults --challenge-http-01 ./you-http-01.js`
434
+ - [Custom ACME DNS-01 Challenges](https://git.rootprojects.org/root/acme-dns-01-test.js)
435
+ - edit the `defaults` section of `greenlock.d/config.json` to change the challenges by hand
436
+ - CLI example: `npx greenlock defaults --challenge-dns-01 acme-dns-01-ovh --challenge-dns-01-token xxxx`
437
+ - Per-site example: `npx greenlock update --subject example.com --challenge-dns-01 ./your-dns-01.js`
438
+ - API example:
439
+ ```js
440
+ greenlock.sites.set({
441
+ subject: "example.com",
442
+ challenges: {
443
+ "dns-01": {
444
+ module: "my-npm-module-name",
445
+ foo: "some option",
446
+ bar: "some other option"
447
+ }
448
+ }
449
+ });
450
+ ```
451
+
452
+ If you're using the default `configDir` management you can edit `greenlock.d/config.json` by hand to change
453
+ which default and per-site modules are used.
454
+
455
+ You can use the CLI, even if you're using a database, buckets, or your own file storage.
456
+
457
+ You can also use the API, particularly if you need to set values dynamically per-site or per-user
458
+ rather than using the global defaults. The certificate store and all challenges can be set
459
+ per-site, but most per-site use cases are for DNS-01.
460
+
461
+ # Ready-made Integrations
462
+
463
+ Greenlock Express integrates between Let's Encrypt's ACME Challenges and many popular services.
464
+
465
+ | Type | Service | Plugin |
466
+ | ----------- | ----------------------------------------------------------------------------------- | ------------------------ |
467
+ | dns-01 | CloudFlare | acme-dns-01-cloudflare |
468
+ | dns-01 | [Digital Ocean](https://git.rootprojects.org/root/acme-dns-01-digitalocean.js) | acme-dns-01-digitalocean |
469
+ | dns-01 | [DNSimple](https://git.rootprojects.org/root/acme-dns-01-dnsimple.js) | acme-dns-01-dnsimple |
470
+ | dns-01 | [DuckDNS](https://git.rootprojects.org/root/acme-dns-01-duckdns.js) | acme-dns-01-duckdns |
471
+ | http-01 | File System / [Web Root](https://git.rootprojects.org/root/acme-http-01-webroot.js) | acme-http-01-webroot |
472
+ | dns-01 | [GoDaddy](https://git.rootprojects.org/root/acme-dns-01-godaddy.js) | acme-dns-01-godaddy |
473
+ | dns-01 | [Gandi](https://git.rootprojects.org/root/acme-dns-01-gandi.js) | acme-dns-01-gandi |
474
+ | dns-01 | [NameCheap](https://git.rootprojects.org/root/acme-dns-01-namecheap.js) | acme-dns-01-namecheap |
475
+ | dns-01 | [Name&#46;com](https://git.rootprojects.org/root/acme-dns-01-namedotcom.js) | acme-dns-01-namedotcom |
476
+ | dns-01 | Route53 (AWS) | acme-dns-01-route53 |
477
+ | http-01 | S3 (AWS, Digital Ocean, Scaleway) | acme-http-01-s3 |
478
+ | dns-01 | [Vultr](https://git.rootprojects.org/root/acme-dns-01-vultr.js) | acme-dns-01-vultr |
479
+ | dns-01 | [Build your own](https://git.rootprojects.org/root/acme-dns-01-test.js) | acme-dns-01-test |
480
+ | http-01 | [Build your own](https://git.rootprojects.org/root/acme-http-01-test.js) | acme-http-01-test |
481
+ | tls-alpn-01 | [Contact us](mailto:support@therootcompany.com) | - |
482
+
483
+ Example Usage:
484
+
485
+ ```bash
486
+ npx greenlock defaults --challenge-dns-01 acme-dns-01-ovh --challenge-dns-01-token xxxx
487
+ npx greenlock defaults --challenge-http-01 acme-http-01-s3 --challenge-http-01-bucket my-bucket
488
+ ```
489
+
490
+ Search `acme-http-01-` or `acme-dns-01-` on npm to find more.
491
+
492
+ # Full Documentation
493
+
494
+ <!--
495
+ - Greenlock CLI
496
+ - Greenlock JavaScript API
497
+ -->
498
+
499
+ Most of the documentation is done by use-case examples, as shown up at the top of the README.
500
+
501
+ We're working on more comprehensive documentation for this newly released version.
502
+ **Please open an issue** with questions in the meantime.
503
+
504
+ # Commercial Support
505
+
506
+ Do you need...
507
+
508
+ - training?
509
+ - specific features?
510
+ - different integrations?
511
+ - bugfixes, on _your_ timeline?
512
+ - custom code, built by experts?
513
+ - commercial support and licensing?
514
+
515
+ You're welcome to [contact us](mailto:aj@therootcompany.com) in regards to IoT, On-Prem,
516
+ Enterprise, and Internal installations, integrations, and deployments.
517
+
518
+ We have both commercial support and commercial licensing available.
519
+
520
+ We also offer consulting for all-things-ACME and Let's Encrypt.
521
+
522
+ # Legal &amp; Rules of the Road
523
+
524
+ Greenlock&trade; is a [trademark](https://rootprojects.org/legal/#trademark) of AJ ONeal
525
+
526
+ The rule of thumb is "attribute, but don't confuse". For example:
527
+
528
+ > Built with [Greenlock Express](https://git.rootprojects.org/root/greenlock.js) (a [Root](https://rootprojects.org) project).
529
+
530
+ Please [contact us](mailto:aj@therootcompany.com) if you have any questions in regards to our trademark,
531
+ attribution, and/or visible source policies. We want to build great software and a great community.
532
+
533
+ [Greenlock&trade;](https://git.rootprojects.org/root/greenlock.js) |
534
+ MPL-2.0 |
535
+ [Terms of Use](https://therootcompany.com/legal/#terms) |
536
+ [Privacy Policy](https://therootcompany.com/legal/#privacy)