Auto Encrypt Localhost issueshttps://source.small-tech.org/site.js/lib/auto-encrypt-localhost/-/issues2021-03-17T17:53:46Zhttps://source.small-tech.org/site.js/lib/auto-encrypt-localhost/-/issues/187.0.4: Installation fails on Mac2021-03-17T17:53:46ZAral Balkan7.0.4: Installation fails on MacThe newly-implemented graphical sudo prompt is resulting in the root certificate material being written out as root instead of the normal account on Mac (contrary to the behaviour on Linux).
This causes the certificate creation code to ...The newly-implemented graphical sudo prompt is resulting in the root certificate material being written out as root instead of the normal account on Mac (contrary to the behaviour on Linux).
This causes the certificate creation code to fail with a permission error.Aral BalkanAral Balkanhttps://source.small-tech.org/site.js/lib/auto-encrypt-localhost/-/issues/167.0.2 on macOS: messy console output on post install2021-03-16T17:51:27ZAral Balkan7.0.2 on macOS: messy console output on post install![Screenshot_2021-03-16_at_17.49.12](/uploads/4c03f0355cdeade6b87c739e562e502b/Screenshot_2021-03-16_at_17.49.12.png)![Screenshot_2021-03-16_at_17.49.12](/uploads/4c03f0355cdeade6b87c739e562e502b/Screenshot_2021-03-16_at_17.49.12.png)Aral BalkanAral Balkanhttps://source.small-tech.org/site.js/lib/auto-encrypt-localhost/-/issues/10Test on all supported platforms2020-05-11T10:28:37ZAral BalkanTest on all supported platforms - [ ] Linux x64
- [ ] Linux arm
- [ ] Linux arm64
- [ ] macOS
- [ ] Windows - [ ] Linux x64
- [ ] Linux arm
- [ ] Linux arm64
- [ ] macOS
- [ ] WindowsAral BalkanAral Balkanhttps://source.small-tech.org/site.js/lib/auto-encrypt-localhost/-/issues/6Handle “Unsupported architecture” error better2019-12-16T12:42:51ZAral BalkanHandle “Unsupported architecture” error betterThis happens when nodecert is run on a platform that a mkcert binary has not been packaged for.
```sh
🆕 [Nodecert] Setting up…
(node:9070) UnhandledPromiseRejectionWarning: Error: Unsupported architecture
at mkcertBinaryForThisMach...This happens when nodecert is run on a platform that a mkcert binary has not been packaged for.
```sh
🆕 [Nodecert] Setting up…
(node:9070) UnhandledPromiseRejectionWarning: Error: Unsupported architecture
at mkcertBinaryForThisMachine (/usr/local/bin/node_modules/@ind.ie/nodecert/index.js:109:41)
at module.exports (/usr/local/bin/node_modules/@ind.ie/nodecert/index.js:28:26)
at Object.Greenlock.createServer (/usr/local/bin/node_modules/@small-tech/https/index.js:162:7)
at Site.createServer (/usr/local/bin/index.js:399:18)
at Site.endAppConfigurationAndCreateServer (/usr/local/bin/index.js:244:24)
at new Site (/usr/local/bin/index.js:137:10)
at /usr/local/bin/bin/commands/serve.js:164:24
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:9070) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:9070) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
```Aral BalkanAral Balkanhttps://source.small-tech.org/site.js/lib/auto-encrypt-localhost/-/issues/9Fix nss installation during server launch @localhost on Arch linux2020-05-07T13:03:35ZAral BalkanFix nss installation during server launch @localhost on Arch linuxServer launch at `@localhost` fails on Arch Linux due to incorrect Pacman commands.
The correct commands are:
```sh
# Update pacman packages.
sudo pacman -Sy
# Install nss without requiring manual confirmation.
sudo pacman -S --noconf...Server launch at `@localhost` fails on Arch Linux due to incorrect Pacman commands.
The correct commands are:
```sh
# Update pacman packages.
sudo pacman -Sy
# Install nss without requiring manual confirmation.
sudo pacman -S --noconfirm nss
```
Note `sudo` must be installed. E.g., on a CloudInit-based install of Arch on CloudScale.ch, it is. Not sure what the deal is on a plain default desktop installation.Aral BalkanAral Balkanhttps://source.small-tech.org/site.js/lib/auto-encrypt-localhost/-/issues/4Should we also bundle binaries for nss to make initial run smoother?2020-07-15T09:43:40ZAral BalkanShould we also bundle binaries for nss to make initial run smoother?Laura just set up her new laptop with Mojave and [Site.js](https://sitejs.org) couldn’t install `nss` (which is necessary for trusted local certificate support on Firefox) as she hadn’t installed Homebrew (or Macports) yet. While there w...Laura just set up her new laptop with Mojave and [Site.js](https://sitejs.org) couldn’t install `nss` (which is necessary for trusted local certificate support on Firefox) as she hadn’t installed Homebrew (or Macports) yet. While there was a warning to that fact, that appears scary and it does complicate the setup process.
Evaluate bundling the nss binaries for supported/necessary platforms:
- [ ] Linux (x64)
- [ ] Linux ARM (armv6l and armv7l, aarch64/arm64)
- [ ] macOS
[(This is not used by mkcert on Windows.)](https://github.com/FiloSottile/mkcert/blob/cb6311cfbe4d93f81c3ee65ae51f0f5e5f677c5e/truststore_nss.go#L47)Aral BalkanAral Balkan