@small-tech/auto-encrypt 3.0.1 → 3.1.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 CHANGED
@@ -266,7 +266,7 @@ We exist in part thanks to patronage by people like you. If you share [our visio
266
266
 
267
267
  ## Copyright
268
268
 
269
- © 2020-2021 [Aral Balkan](https://ar.al), [Small Technology Foundation](https://small-tech.org).
269
+ © 2020-present [Aral Balkan](https://ar.al), [Small Technology Foundation](https://small-tech.org).
270
270
 
271
271
  Let’s Encrypt is a trademark of the Internet Security Research Group (ISRG). All rights reserved. Node.js is a trademark of Joyent, Inc. and is used with its permission. We are not endorsed by or affiliated with Joyent or ISRG.
272
272
 
package/lib/acmeCsr.js CHANGED
@@ -62,7 +62,7 @@ function csrAsPem (domains, key) {
62
62
  }]
63
63
  }])
64
64
 
65
- csr.sign(keys.private)
65
+ csr.sign(keys.private, forge.md.sha256.create())
66
66
 
67
67
  const pem = forge.pki.certificationRequestToPem(csr)
68
68
  return pem
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@small-tech/auto-encrypt",
3
- "version": "3.0.1",
3
+ "version": "3.1.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",
@@ -64,7 +64,7 @@
64
64
  "encodeurl": "^1.0.2",
65
65
  "jose": "^1.24.0",
66
66
  "moment": "^2.24.0",
67
- "node-forge": "^0.10.0",
67
+ "node-forge": "^1.3.1",
68
68
  "ocsp": "^1.2.0",
69
69
  "server-destroy": "^1.0.1"
70
70
  },
@@ -72,7 +72,7 @@
72
72
  "@small-tech/esm-tape-runner": "^1.0.3",
73
73
  "@small-tech/node-pebble": "^4.2.4",
74
74
  "@small-tech/tap-monkey": "^1.3.0",
75
- "c8": "^7.6.0",
75
+ "c8": "^7.11.3",
76
76
  "dependency-cruiser": "^9.15.1",
77
77
  "esbuild": "^0.8.53",
78
78
  "jsdoc": "^3.6.6",
package/CHANGELOG.md DELETED
@@ -1,120 +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
- ## [3.0.1] - 2021-03-21
8
-
9
- Fixes regression on Windows introduced in 3.x branch.
10
-
11
- ### Fixed
12
-
13
- - Make `__dirname` declaration cross-platform (was previously failing on Windows). See https://github.com/nodejs/node/issues/37845
14
- - Introduce small delay in request fail check test while certificate is being provisioned to ensure tests pass with Let’s Encrypt staging server.
15
-
16
- ## [3.0.0] - 2021-03-08
17
-
18
- ### Changed
19
-
20
- - __Breaking change:__ Is now an ECMAScript Modules (ESM) project.
21
- - Now includes the latest Let’s Encrypt certificate authority root certificate for the staging environment. (This is automatically injected into your Node.js environment when running the server in staging mode and is used during testing.)
22
- - Dev: now using @small-tech/esm-tape-runner.
23
- - Dev: replaced tap-spec and tap-nyc with @small-tech/tap-monkey.
24
-
25
- ### Fixed
26
-
27
- - No longer crashes when checking for certificate renewal. (#34)
28
- - Tests now run properly in staging mode.
29
-
30
- ### Improved
31
-
32
- - npm package size is now 193.1kb (down from 345kb previously).
33
-
34
- ## [2.1.0 and 2.1.1] - Do not use these versions.
35
-
36
- These accidentally included the breaking change from 3.0.0 in a semver minor update.
37
-
38
- _The CommonJS version of Auto Encrypt now lives in the 2.x branch and the first release from it is version 2.2.0 which has the bug fix and the root certificate update from version 3.0.0 backported. For future 2.x release info, please see the changelog in the 2.x branch._
39
-
40
- ## [2.0.6] - 2021-02-16
41
-
42
- ### Fixed
43
-
44
- - Assignment to constant. This would have caused a crash when a `Retry-After` header was received from Let’s Encrypt.
45
-
46
- ### Improved
47
-
48
- - Developer documentation. Now lists value to be added to hosts files to run local tests.
49
-
50
- ## [2.0.5] - 2020-10-29
51
-
52
- ### Improved
53
-
54
- - Update dependencies to remove npm vulnerability warnings.
55
-
56
- ## [2.0.4] - 2020-07-10
57
-
58
- ### Fixed
59
-
60
- - HTTP to HTTPS redirects now start up and work as they should (they weren’t previously).
61
-
62
- ## [2.0.3] - 2020-07-10
63
-
64
- ### Changed
65
-
66
- - 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.)
67
-
68
- ## [2.0.2] - 2020-07-10
69
-
70
- ### Fixed
71
-
72
- - Links to developer documentation now work everywhere, not just on source code repository web interfaces.
73
-
74
- ### Changed
75
-
76
- - Replaced outdated coverage message in readme and linked to developer documentation for information on tests and coverage.
77
-
78
- ## [2.0.1] - 2020-07-03
79
-
80
- ### Added
81
-
82
- - HTTP to HTTPS redirects are now logged.
83
-
84
- ## [2.0.0] - 2020-07-03
85
-
86
- ### Changed
87
-
88
- - Breaking change: you no longer have to call AutoEncrypt.shutdown() manually. Closing your server will do it automatically (#33).
89
-
90
- ### Added
91
-
92
- - 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).
93
-
94
- ## [1.0.3] - 2020-06-20
95
-
96
- ### Fixed
97
-
98
- - Carriage returns are now stripped from Certificate Signing Requests (CSRs) (#31).
99
-
100
- ## [1.0.2] - 2020-06-16
101
-
102
- ### Fixed
103
-
104
- - No longer crashes if OCSP request received before certificate created.
105
- - Cosmetic: format certificate details nicely in log message.
106
- - Minor: fix capitalisation in log message.
107
-
108
- ## [1.0.1] - 2020-06-15
109
-
110
- ### Changed
111
-
112
- - Update log format to match Site.js output.
113
-
114
- ### Fixed
115
-
116
- - Remove debug output.
117
-
118
- ## [1.0.0] - 2020-04-15
119
-
120
- Initial release.