Skip to content

Commit 9116ee3

Browse files
committed
Update documentation
1 parent 8853231 commit 9116ee3

File tree

6 files changed

+136
-60
lines changed

6 files changed

+136
-60
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [7.0.7] - 2021-03-24
9+
10+
Once more, with documentation this time!
11+
12+
### Changed
13+
14+
- Updated documentation to reflect how the module actually works now.
15+
816
## [7.0.6] - 2021-03-24
917

1018
The hybrid approach.

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ Automatically provisions and installs locally-trusted TLS certificates for Node.
44

55
## How it works
66

7-
At installation time, Auto Encrypt Localhost uses mkcert to create a local certificate authority, adds it to the various trust stores, and uses it to create locally-trusted TLS certificates that are installed in your server.
7+
At npm package installation time, Auto Encrypt Localhost installs mkcert.
88

9-
At runtime, you can reach your server via the local loopback addresses (localhost, 127.0.0.1) on the device itself and also from other devices on the local area network by using your device’s external IPv4 address(es).
9+
At runtime, Auto Encrypt Localhost uses mkcert to create a local certificate authority and add it to the various trust stores. It then uses it to create locally-trusted TLS certificates that are automatically used by your server.
10+
11+
You can reach your server via the local loopback addresses (localhost, 127.0.0.1) on the device itself and also from other devices on the local area network by using your device’s external IPv4 address(es).
1012

1113
## System requirements
1214

1315
Tested and supported on:
1416

15-
- Linux (tested with elementary OS Hera)
17+
- Linux (tested with elementary OS 5.x/Hera)
1618
- macOS (tested on Big Sur)
17-
- Windows 10 (tested in Windows Terminal with PowerShell)
19+
- Windows 10 (tested with Windows Terminal and PowerShell)
1820

1921
(WSL is not supported for certificates at localhost unless you’re running your browser under WSL also).
2022

@@ -24,11 +26,7 @@ Tested and supported on:
2426
npm i @small-tech/auto-encrypt-localhost
2527
```
2628

27-
Note that during installation, Auto Encrypt Localhost will create your local certificate authority and install it in the system root store and generate locally-trusted certificates. These actions require elevated privileges. Since [npm does not handle sudo prompts correctly in lifecycle scripts](https://github.com/npm/cli/issues/2887), you will see a graphical sudo prompt pop up to ask you for your adminstrator password. Once you’ve provided it, installation will proceed as normal.
28-
29-
![Screenshot of graphical sudo prompt “Authentication required: Authentication is needed to run /bin/bash as the super user”](https://small-tech.org/images/graphical-sudo-prompt.png)
30-
31-
On Windows, you will also be prompted separately to allow the installation of the certificates.
29+
Note that during installation, Auto Encrypt Localhost will download and install the correct mkcert binary for your system.
3230

3331
## Usage
3432

@@ -65,7 +63,9 @@ server.listen(443, () => {
6563
})
6664
```
6765

68-
You can now reach your server via https://localhost, https://127.0.0.1, and via its external IPv4 address(es) on your local area network. To find the list of IP addresses that your local server is reachable from, you can run the following code in the Node interpreter:
66+
On first run, Auto Encrypt Localhost will use mkcert to create your local certificate authority and install it in the system root store and generate locally-trusted certificates. These actions require elevated privileges and you will be prompted for your password unless you have passwordless sudo set up for your system.
67+
68+
Once your server is up and running, you can reach it via https://localhost, https://127.0.0.1, and via its external IPv4 address(es) on your local area network. To find the list of IP addresses that your local server is reachable from, you can run the following code in the Node interpreter:
6969

7070
```js
7171
Object.entries(os.networkInterfaces())
@@ -161,8 +161,6 @@ If you’re evaluating this for a “startup” or an enterprise, let us save yo
161161
162162
Locally-trusted certificates do not work under Firefox. Please use Edge or Chrome on this platform. This is [a mkcert limitation](https://github.com/FiloSottile/mkcert#supported-root-stores).
163163
164-
__Version 7.x is currently not tested under Windows.__ It may not be able to set the executable bit on the binary download if that’s necessary. __This notice will be removed once it’s been tested and confirmed to be working.__
165-
166164
## Related projects
167165
168166
From lower-level to higher-level:

0 commit comments

Comments
 (0)