mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
5b41a06d0c
- `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>
72 lines
1.7 KiB
Markdown
72 lines
1.7 KiB
Markdown
# 1. Certificates
|
|
|
|
[Index](readme.md) · Next: [Server](2-server.md)
|
|
|
|
Made by `bakashrot.exe`'s `cert` commands, with no server needed.
|
|
More options: `bakashrot.exe cert <command> --help`.
|
|
|
|
|
|
## The root certificate
|
|
|
|
```shell
|
|
bakashrot.exe cert ca --name bakashrot-test
|
|
```
|
|
|
|
Resulting files:
|
|
* `ca.crt` - Must be copied to each server and client.
|
|
* `ca.key` - Stays on this machine, it can make any certificate.
|
|
|
|
|
|
## A server certificate
|
|
|
|
```shell
|
|
bakashrot.exe cert issue --server --name server-lan1
|
|
Wrote .\server-lan1.crt
|
|
Wrote .\server-lan1.key
|
|
```
|
|
|
|
Depending on how you set up replications, you may have to add a role with `--role <ROLE_NAME>`. \
|
|
See [???]().
|
|
|
|
|
|
## Node certificates
|
|
|
|
```shell
|
|
bakashrot.exe cert issue --name node-sensor --role sensor
|
|
Wrote .\node-sensor.crt
|
|
Wrote .\node-sensor.key
|
|
|
|
bakashrot.exe cert issue --name node-viewer --role viewer
|
|
Wrote .\node-viewer.crt
|
|
Wrote .\node-viewer.key
|
|
```
|
|
|
|
* The name is the node its messages are pushed as.
|
|
* Roles mean nothing until the server's config says what they may do ([Server](2-server.md)).
|
|
* Several roles: `--role sensor --role viewer`.
|
|
|
|
|
|
## Checking one
|
|
|
|
```shell
|
|
bakashrot.exe cert show node-sensor.crt
|
|
node-sensor.crt
|
|
name: node-sensor
|
|
roles: sensor
|
|
usage: client
|
|
issuer: bakashrot-test
|
|
valid: Nov 15 11:35:45 2026 +00:00 to Nov 15 11:35:45 2027 +00:00
|
|
serial: 588a92f0c5b39bc557f463f0ef50c278a2f9df50
|
|
```
|
|
|
|
|
|
## Revoking one
|
|
|
|
```shell
|
|
bakashrot.exe cert revoke node-sensor.crt
|
|
```
|
|
|
|
* Writes `ca.crl` (every certificate revoked so far).
|
|
* Copy it next to the server's `server.toml` and add `crl = "ca.crl"` under `[server]`.
|
|
* The server reloads it within 5 s; that certificate is refused from its next request.
|