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,7 +2,7 @@
|
||||
|
||||
Who connects to whom, and how it's checked. The code is
|
||||
`crates/bakashrot-pki` (the library) and `crates/bakashrot-tools`
|
||||
(`bakashrot-cert`, the tool). Decided in `../revamp.md`, "Decided".
|
||||
(`bakashrot cert`, the tool's commands). Decided in `../revamp.md`, "Decided".
|
||||
|
||||
## The idea
|
||||
|
||||
@@ -68,7 +68,7 @@ connected, `peer_identity()` gives the other end's `Identity`.
|
||||
|
||||
## Revocation
|
||||
|
||||
- `bakashrot-cert revoke` writes `ca.crl`, signed by the CA, with every
|
||||
- `bakashrot cert revoke` writes `ca.crl`, signed by the CA, with every
|
||||
certificate revoked before (written aside, then moved in place).
|
||||
- A server reads it into `Revocations`, which its TLS setup shares
|
||||
(`SharedRevocations`): replacing what's inside takes effect for the next
|
||||
@@ -95,11 +95,11 @@ connected, `peer_identity()` gives the other end's `Identity`.
|
||||
## The tool
|
||||
|
||||
```
|
||||
bakashrot-cert ca --name "Home CA" ca.crt, ca.key
|
||||
bakashrot-cert issue --name kitchen --role sensor kitchen.crt, kitchen.key
|
||||
bakashrot-cert issue --name server-1 --role peer --server
|
||||
bakashrot-cert revoke kitchen.crt ca.crl
|
||||
bakashrot-cert show kitchen.crt
|
||||
bakashrot cert ca --name "Home CA" ca.crt, ca.key
|
||||
bakashrot cert issue --name kitchen --role sensor kitchen.crt, kitchen.key
|
||||
bakashrot cert issue --name server-1 --role peer --server
|
||||
bakashrot cert revoke kitchen.crt ca.crl
|
||||
bakashrot cert show kitchen.crt
|
||||
```
|
||||
|
||||
`--ca` (the folder of `ca.crt` / `ca.key`, `.` by default), `--out` (where
|
||||
|
||||
Reference in New Issue
Block a user