mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Moved the identity OID under NibblePoker's PEN, Added a timeout on what the server sends, Bumped to 0.3.0
- The identity extension's OID is 1.3.6.1.4.1.67681.1.1 (PEN 67681): certificates made with the placeholder aren't read any more, the warning of `bakashrot-cert` is gone. - A packet the server sends (an answer, an attachment's part, to a peer too) has 30 s: a client that stopped reading is dropped. - A peer using up a stream's ids: left as it is, why in known-issues.md. - Version 0.3.0. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -2,10 +2,7 @@
|
||||
//! them. Every file is PEM; keys are written once, never over an existing
|
||||
//! file. See `docs/certificates.md`.
|
||||
|
||||
use bakashrot_pki::{
|
||||
CA_DAYS, CERTIFICATE_DAYS, Ca, IDENTITY_OID_IS_PLACEHOLDER, Identity, Revocations, Usage,
|
||||
summarize,
|
||||
};
|
||||
use bakashrot_pki::{CA_DAYS, CERTIFICATE_DAYS, Ca, Identity, Revocations, Usage, summarize};
|
||||
use clap::{Parser, Subcommand};
|
||||
use std::fs;
|
||||
use std::io::Write;
|
||||
@@ -98,15 +95,7 @@ fn main() -> ExitCode {
|
||||
}
|
||||
}
|
||||
|
||||
/// Said whenever a certificate is made while the OID is the placeholder.
|
||||
const PLACEHOLDER_WARNING: &str = "warning: the identity extension's OID is still a placeholder \
|
||||
(docs/oid.md): fine for tests, not for certificates in use";
|
||||
|
||||
fn run(command: Command) -> Result<(), String> {
|
||||
if IDENTITY_OID_IS_PLACEHOLDER && matches!(command, Command::Ca { .. } | Command::Issue { .. })
|
||||
{
|
||||
eprintln!("{PLACEHOLDER_WARNING}");
|
||||
}
|
||||
match command {
|
||||
Command::Ca { name, days, out } => {
|
||||
let ca = Ca::create(&name, days).map_err(|e| e.to_string())?;
|
||||
|
||||
Reference in New Issue
Block a user