mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Merged bakashrot-cert into bakashrot as bakashrot cert, Made the programs smaller, Added a -HybridCrt switch
- `bakashrot cert ca|issue|revoke|show` (same options) replaces bakashrot-cert: aws-lc, the C runtime and clap once, 2.53 MB instead of 2.85 + 1.73 MB on Windows; guides, docs, release.py, Docker updated - The tool built with its own profile, release-tools (panic = "abort", about 15% smaller); the DLL and the server keep unwind - clap without colours and suggestions (40 KB, 9 crates fewer) - SQLite without FTS3/FTS5, R-Tree, dbstat, STAT4, soundex(), extension loading and column metadata (LIBSQLITE3_FLAGS): the server 4.68 to 4.37 MB; a storage test checks they're out - build.ps1 / release.ps1 -HybridCrt (.cargo/hybrid-crt.toml): the UCRT from Windows, about 180 KB less per program, still nothing to install; static stays the default, README.txt says which - revamp.md: what was weighed and left (UPX, fully dynamic CRT, nightly options, OMIT_* flags), aws-lc kept over Graviola (490 KB bigger) and ring (no ML-KEM) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
|
||||
[Index](readme.md) · Next: [Server](2-server.md)
|
||||
|
||||
More options: `bakashrot-cert.exe <command> --help`.
|
||||
Made by `bakashrot.exe`'s `cert` commands, with no server needed.
|
||||
More options: `bakashrot.exe cert <command> --help`.
|
||||
|
||||
|
||||
## The root certificate
|
||||
|
||||
```shell
|
||||
bakashrot-cert.exe ca --name bakashrot-test
|
||||
bakashrot.exe cert ca --name bakashrot-test
|
||||
```
|
||||
|
||||
Resulting files:
|
||||
@@ -19,7 +20,7 @@ Resulting files:
|
||||
## A server certificate
|
||||
|
||||
```shell
|
||||
bakashrot-cert.exe issue --server --name server-lan1
|
||||
bakashrot.exe cert issue --server --name server-lan1
|
||||
Wrote .\server-lan1.crt
|
||||
Wrote .\server-lan1.key
|
||||
```
|
||||
@@ -31,11 +32,11 @@ See [???]().
|
||||
## Node certificates
|
||||
|
||||
```shell
|
||||
bakashrot-cert.exe issue --name node-sensor --role sensor
|
||||
bakashrot.exe cert issue --name node-sensor --role sensor
|
||||
Wrote .\node-sensor.crt
|
||||
Wrote .\node-sensor.key
|
||||
|
||||
bakashrot-cert.exe issue --name node-viewer --role viewer
|
||||
bakashrot.exe cert issue --name node-viewer --role viewer
|
||||
Wrote .\node-viewer.crt
|
||||
Wrote .\node-viewer.key
|
||||
```
|
||||
@@ -48,7 +49,7 @@ Wrote .\node-viewer.key
|
||||
## Checking one
|
||||
|
||||
```shell
|
||||
bakashrot-cert.exe show node-sensor.crt
|
||||
bakashrot.exe cert show node-sensor.crt
|
||||
node-sensor.crt
|
||||
name: node-sensor
|
||||
roles: sensor
|
||||
@@ -62,7 +63,7 @@ node-sensor.crt
|
||||
## Revoking one
|
||||
|
||||
```shell
|
||||
bakashrot-cert.exe revoke node-sensor.crt
|
||||
bakashrot.exe cert revoke node-sensor.crt
|
||||
```
|
||||
|
||||
* Writes `ca.crl` (every certificate revoked so far).
|
||||
|
||||
+1
-1
@@ -115,7 +115,7 @@ accept_nodes = ["*"] # Accepts every foreign node's messages (Default)
|
||||
> list_topics = true
|
||||
> list_nodes = true
|
||||
> ```
|
||||
> Its certificate: `bakashrot-cert.exe issue --name node-admin --role admin`
|
||||
> Its certificate: `bakashrot.exe cert issue --name node-admin --role admin`
|
||||
|
||||
|
||||
### Retention
|
||||
|
||||
+2
-2
@@ -15,12 +15,12 @@ Who gets which files:
|
||||
|
||||
| Machine | Files |
|
||||
|---------|---------------------------------------------------------------------------------------|
|
||||
| admin | `bakashrot-cert.exe`, `ca.crt`, `ca.key` (never copied) |
|
||||
| admin | `bakashrot.exe` (its `cert` commands), `ca.crt`, `ca.key` (never copied) |
|
||||
| server | `bakashrot-server.exe`, `ca.crt`, `server-lan1.crt`, `server-lan1.key`, `server.toml` |
|
||||
| sensor | `bakashrot.exe`, `ca.crt`, `node-sensor.crt`, `node-sensor.key`, `client.toml` |
|
||||
| viewer | `bakashrot.exe`, `ca.crt`, `node-viewer.crt`, `node-viewer.key`, `viewer.toml` |
|
||||
|
||||
More:
|
||||
* `bakashrot <command> --help`, `bakashrot-cert <command> --help`.
|
||||
* `bakashrot <command> --help`, `bakashrot cert <command> --help`.
|
||||
* Two replicating servers, Python, Docker: `docs/lab.md`.
|
||||
* Every setting: `docs/config.md`.
|
||||
|
||||
Reference in New Issue
Block a user