@small-tech/auto-encrypt 2.1.0 → 2.3.0
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.
- package/README.md +10 -8
- package/index.js +37 -34
- package/lib/Account.js +6 -4
- package/lib/AcmeRequest.js +32 -29
- package/lib/Authorisation.js +9 -7
- package/lib/Certificate.js +26 -24
- package/lib/Configuration.js +11 -16
- package/lib/Directory.js +26 -24
- package/lib/HttpServer.js +7 -5
- package/lib/Identity.js +8 -6
- package/lib/LetsEncryptServer.js +4 -2
- package/lib/Nonce.js +6 -4
- package/lib/Order.js +17 -15
- package/lib/acme-requests/AuthorisationRequest.js +5 -3
- package/lib/acme-requests/CertificateRequest.js +5 -3
- package/lib/acme-requests/CheckOrderStatusRequest.js +5 -3
- package/lib/acme-requests/FinaliseOrderRequest.js +5 -3
- package/lib/acme-requests/NewAccountRequest.js +4 -2
- package/lib/acme-requests/NewOrderRequest.js +5 -3
- package/lib/acme-requests/ReadyForChallengeValidationRequest.js +5 -3
- package/lib/acmeCsr.js +3 -3
- package/lib/identities/AccountIdentity.js +5 -3
- package/lib/identities/CertificateIdentity.js +5 -3
- package/lib/staging/fakelerootx1.pem +30 -27
- package/lib/staging/monkeyPatchTls.js +6 -6
- package/lib/test-helpers/index.js +39 -31
- package/lib/util/Pluralise.js +3 -1
- package/lib/util/Throws.js +7 -3
- package/lib/util/async-foreach.js +3 -1
- package/lib/util/log.js +3 -1
- package/lib/util/waitFor.js +3 -1
- package/lib/x.509/rfc5280.js +171 -84
- package/package.json +20 -21
- package/typedefs/lib/AcmeRequest.js +1 -1
- package/CHANGELOG +0 -99
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@small-tech/auto-encrypt",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Adds automatic provisioning and renewal of Let’s Encrypt TLS certificates with OCSP Stapling to Node.js https servers (including Express.js, etc.)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"let's encrypt",
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"url": "https://ar.al"
|
|
19
19
|
},
|
|
20
20
|
"license": "AGPL-3.0-or-later",
|
|
21
|
-
"type": "module",
|
|
22
21
|
"main": "index.js",
|
|
23
22
|
"files": [
|
|
24
23
|
"lib",
|
|
@@ -35,22 +34,22 @@
|
|
|
35
34
|
"url": "https://github.com/small-tech/auto-encrypt.git"
|
|
36
35
|
},
|
|
37
36
|
"scripts": {
|
|
38
|
-
"test": "PEBBLE_VA_NOSLEEP=1 PEBBLE_WFE_NONCEREJECT=0 QUIET=true
|
|
39
|
-
"test-debug": "PEBBLE_VA_NOSLEEP=1 PEBBLE_WFE_NONCEREJECT=0
|
|
40
|
-
"test-pebble-sleep": "PEBBLE_WFE_NONCEREJECT=0 QUIET=true
|
|
41
|
-
"test-pebble-sleep-debug": "PEBBLE_WFE_NONCEREJECT=0
|
|
42
|
-
"test-pebble-sleep-noncereject": "QUIET=true
|
|
43
|
-
"test-pebble-sleep-noncereject-debug": "
|
|
44
|
-
"test-staging": "STAGING=true QUIET=true
|
|
45
|
-
"test-staging-debug": "STAGING=true
|
|
46
|
-
"coverage": "PEBBLE_VA_NOSLEEP=1 PEBBLE_WFE_NONCEREJECT=0 QUIET=true
|
|
47
|
-
"coverage-pebble-sleep": "PEBBLE_WFE_NONCEREJECT=0 QUIET=true
|
|
48
|
-
"coverage-pebble-sleep-noncereject": "QUIET=true
|
|
49
|
-
"coverage-staging": "STAGING=true QUIET=true
|
|
37
|
+
"test": "PEBBLE_VA_NOSLEEP=1 PEBBLE_WFE_NONCEREJECT=0 QUIET=true tape 'test/**/*.js' | tap-spec",
|
|
38
|
+
"test-debug": "PEBBLE_VA_NOSLEEP=1 PEBBLE_WFE_NONCEREJECT=0 tape 'test/**/*.js' | tap-spec",
|
|
39
|
+
"test-pebble-sleep": "PEBBLE_WFE_NONCEREJECT=0 QUIET=true tape 'test/**/*.js' | tap-spec",
|
|
40
|
+
"test-pebble-sleep-debug": "PEBBLE_WFE_NONCEREJECT=0 tape 'test/**/*.js' | tap-spec",
|
|
41
|
+
"test-pebble-sleep-noncereject": "QUIET=true tape 'test/**/*.js' | tap-spec",
|
|
42
|
+
"test-pebble-sleep-noncereject-debug": "tape 'test/**/*.js' | tap-spec",
|
|
43
|
+
"test-staging": "STAGING=true QUIET=true tape 'test/**/*.js' | tap-spec",
|
|
44
|
+
"test-staging-debug": "STAGING=true tape 'test/**/*.js' | tap-spec",
|
|
45
|
+
"coverage": "PEBBLE_VA_NOSLEEP=1 PEBBLE_WFE_NONCEREJECT=0 QUIET=true nyc tape 'test/**/*.js' | tap-nyc",
|
|
46
|
+
"coverage-pebble-sleep": "PEBBLE_WFE_NONCEREJECT=0 QUIET=true nyc tape 'test/**/*.js' | tap-nyc",
|
|
47
|
+
"coverage-pebble-sleep-noncereject": "QUIET=true nyc tape 'test/**/*.js' | tap-nyc",
|
|
48
|
+
"coverage-staging": "STAGING=true QUIET=true nyc tape 'test/**/*.js' | tap-nyc",
|
|
50
49
|
"generate-dependency-diagram": "node_modules/.bin/depcruise --exclude \"^node_modules|lib/util|typedefs|^https|^crypto$|^fs$|^os$|^tls$|^path$|^events$|^http$|^util\" --output-type dot index.js | dot -T svg > artefacts/dependency-graph.svg",
|
|
51
50
|
"generate-developer-documentation": "npm run generate-dependency-diagram && node_modules/.bin/jsdoc2md --private --template developer-documentation.hbs --files typedefs/**/*.js --files index.js --files lib/*.js > developer-documentation.md"
|
|
52
51
|
},
|
|
53
|
-
"
|
|
52
|
+
"nyc": {
|
|
54
53
|
"exclude": [
|
|
55
54
|
"test/**/*.js",
|
|
56
55
|
"lib/test-helpers/*.js",
|
|
@@ -62,22 +61,22 @@
|
|
|
62
61
|
"dependencies": {
|
|
63
62
|
"bent": "aral/bent#errors-with-response-headers",
|
|
64
63
|
"encodeurl": "^1.0.2",
|
|
64
|
+
"fs-extra": "^8.1.0",
|
|
65
65
|
"jose": "^1.24.0",
|
|
66
66
|
"moment": "^2.24.0",
|
|
67
|
-
"node-forge": "^
|
|
67
|
+
"node-forge": "^1.3.1",
|
|
68
68
|
"ocsp": "^1.2.0",
|
|
69
69
|
"server-destroy": "^1.0.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@small-tech/esm-tape-runner": "^1.0.3",
|
|
73
72
|
"@small-tech/node-pebble": "^4.2.4",
|
|
74
|
-
"@small-tech/tap-monkey": "^1.3.0",
|
|
75
|
-
"c8": "^7.6.0",
|
|
76
73
|
"dependency-cruiser": "^9.15.1",
|
|
77
|
-
"esbuild": "^0.8.53",
|
|
78
74
|
"jsdoc": "^3.6.6",
|
|
79
75
|
"jsdoc-to-markdown": "^6.0.1",
|
|
80
|
-
"
|
|
76
|
+
"nyc": "^15.1.0",
|
|
77
|
+
"tap-nyc": "^1.0.3",
|
|
78
|
+
"tap-spec": "https://github.com/small-tech/tap-spec",
|
|
79
|
+
"tape": "^5.0.1",
|
|
81
80
|
"wtfnode": "^0.8.1"
|
|
82
81
|
}
|
|
83
82
|
}
|
package/CHANGELOG
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
-
|
|
7
|
-
## [2.1.0] - Work in progress
|
|
8
|
-
|
|
9
|
-
### Changed
|
|
10
|
-
|
|
11
|
-
- Is now an ECMAScript Modules (ESM) project
|
|
12
|
-
- Dev: now using @small-tech/esm-tape-runner
|
|
13
|
-
- Dev: replaced tap-spec and tap-nyc with @small-tech/tap-monkey
|
|
14
|
-
|
|
15
|
-
### Improved
|
|
16
|
-
|
|
17
|
-
- npm package size is now 193.1kb (down from 345kb previously).
|
|
18
|
-
|
|
19
|
-
## [2.0.6] - 2021-02-16
|
|
20
|
-
|
|
21
|
-
### Fixed
|
|
22
|
-
|
|
23
|
-
- Assignment to constant. This would have caused a crash when a `Retry-After` header was received from Let’s Encrypt.
|
|
24
|
-
|
|
25
|
-
### Improved
|
|
26
|
-
|
|
27
|
-
- Developer documentation. Now lists value to be added to hosts files to run local tests.
|
|
28
|
-
|
|
29
|
-
## [2.0.5] - 2020-10-29
|
|
30
|
-
|
|
31
|
-
### Improved
|
|
32
|
-
|
|
33
|
-
- Update dependencies to remove npm vulnerability warnings.
|
|
34
|
-
|
|
35
|
-
## [2.0.4] - 2020-07-10
|
|
36
|
-
|
|
37
|
-
### Fixed
|
|
38
|
-
|
|
39
|
-
- HTTP to HTTPS redirects now start up and work as they should (they weren’t previously).
|
|
40
|
-
|
|
41
|
-
## [2.0.3] - 2020-07-10
|
|
42
|
-
|
|
43
|
-
### Changed
|
|
44
|
-
|
|
45
|
-
- Update source code repository in npm package to point to GitHub mirror. (The GitHub mirror is the public repository where we can accept issues and pull requests. [The canonical repository](https://source.small-tech.org/site.js/lib/auto-encrypt) is on our own server where we do not accept sign ups as we don’t want it to become yet another centralised host.)
|
|
46
|
-
|
|
47
|
-
## [2.0.2] - 2020-07-10
|
|
48
|
-
|
|
49
|
-
### Fixed
|
|
50
|
-
|
|
51
|
-
- Links to developer documentation now work everywhere, not just on source code repository web interfaces.
|
|
52
|
-
|
|
53
|
-
### Changed
|
|
54
|
-
|
|
55
|
-
- Replaced outdated coverage message in readme and linked to developer documentation for information on tests and coverage.
|
|
56
|
-
|
|
57
|
-
## [2.0.1] - 2020-07-03
|
|
58
|
-
|
|
59
|
-
### Added
|
|
60
|
-
|
|
61
|
-
- HTTP to HTTPS redirects are now logged.
|
|
62
|
-
|
|
63
|
-
## [2.0.0] - 2020-07-03
|
|
64
|
-
|
|
65
|
-
### Changed
|
|
66
|
-
|
|
67
|
-
- Breaking change: you no longer have to call AutoEncrypt.shutdown() manually. Closing your server will do it automatically (#33).
|
|
68
|
-
|
|
69
|
-
### Added
|
|
70
|
-
|
|
71
|
-
- Automatic HTTP to HTTPS redirection. An HTTP server is now kept running for the lifetime of your HTTPS server and, when it is not responding to Let’s Encrypt challenges, it redirects HTTP calls on port 80 to your HTTPS server (#32).
|
|
72
|
-
|
|
73
|
-
## [1.0.3] - 2020-06-20
|
|
74
|
-
|
|
75
|
-
### Fixed
|
|
76
|
-
|
|
77
|
-
- Carriage returns are now stripped from Certificate Signing Requests (CSRs) (#31).
|
|
78
|
-
|
|
79
|
-
## [1.0.2] - 2020-06-16
|
|
80
|
-
|
|
81
|
-
### Fixed
|
|
82
|
-
|
|
83
|
-
- No longer crashes if OCSP request received before certificate created.
|
|
84
|
-
- Cosmetic: format certificate details nicely in log message.
|
|
85
|
-
- Minor: fix capitalisation in log message.
|
|
86
|
-
|
|
87
|
-
## [1.0.1] - 2020-06-15
|
|
88
|
-
|
|
89
|
-
### Changed
|
|
90
|
-
|
|
91
|
-
- Update log format to match Site.js output.
|
|
92
|
-
|
|
93
|
-
### Fixed
|
|
94
|
-
|
|
95
|
-
- Remove debug output.
|
|
96
|
-
|
|
97
|
-
## [1.0.0] - 2020-04-15
|
|
98
|
-
|
|
99
|
-
Initial release.
|